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