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