I have a method in Java:
public int getInt() {
IntByReference ibr = new IntByReference();
if (CFLib.INSTANCE.CFNumberGetValue(this, 4, ibr))
return ibr.getValue();
return -1; }
here is the Reference:
How I Can copy this exactly for C#.net?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That 4 there corresponds to the enum value
kCFNumberSInt64Type. Why was that being jammed into a (32 bit) integer? Anyway, it looks likeCFNumberGetValuewants avoid*(C++) for its third parameter.I don’t know if anything needs to be done with the first parameter as I have no idea what
thisis.