Convert a method from java to C#.net
<p>I have a method in Java:</p>

<pre><code>public int getInt() {
IntByReference ibr = new IntByReference();
if (CFLib.INSTANCE.CFNumberGetValue(this, 4, ibr))
  return ibr.getValue();
return -1;  }
</code></pre>

<p>here is the Reference:</p>

<p><a href="http://developer.apple.com/iphone/library/documentation/CoreFoundation/Reference/CFNumberRef/Reference/reference.html" rel="nofollow">http://developer.apple.com/iphone/library/documentation/CoreFoundation/Reference/CFNumberRef/Reference/reference.html</a></p>

<p>How I Can copy this exactly for C#.net?</p>
