public static long?CursorGetBigInt(HDFqlCursor cursor) { IntPtr pointer = HDFqlPINVOKE.CursorGetBigInt(HDFqlCursor.getCPtr(cursor)); if (pointer == IntPtr.Zero) { return(null); } else { long [] value = new long[1]; Marshal.Copy(pointer, value, 0, 1); return(value[0]); } }