3 // Undocumented IntPtr and UIntPtr conversion exceptions
\r
7 static long CastUIntPtrToInt64 (UIntPtr ptr)
\r
12 static uint CastIntPtrToUInt32 (IntPtr ptr)
\r
19 if (IntPtr.Size < 8) {
\r
20 if (CastUIntPtrToInt64 (new UIntPtr (uint.MaxValue)) != uint.MaxValue)
\r
22 if (CastIntPtrToUInt32 (new IntPtr (int.MaxValue)) != int.MaxValue)
\r
25 throw new ApplicationException (CastUIntPtrToInt64 (new UIntPtr (ulong.MaxValue)).ToString ());
\r
26 // if (CastIntPtrToUInt32 (new IntPtr (long.MaxValue)) != long.MaxValue)
\r