Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CompareTo() [2/4]

unsafe int System.IntPtr.CompareTo ( object? value)
inline

Implements System.IComparable< in T >.

Definition at line 215 of file IntPtr.cs.

216 {
217 if (value == null)
218 {
219 return 1;
220 }
221 if (value is IntPtr intPtr)
222 {
223 if ((nint)_value < (nint)intPtr)
224 {
225 return -1;
226 }
227 if ((nint)_value > (nint)intPtr)
228 {
229 return 1;
230 }
231 return 0;
232 }
233 throw new ArgumentException(SR.Arg_MustBeIntPtr);
234 }
unsafe IntPtr(int value)
Definition IntPtr.cs:69
unsafe readonly void * _value
Definition IntPtr.cs:15

References System.IntPtr._value, System.SR.Arg_MustBeIntPtr, System.Runtime.Serialization.Dictionary, and System.value.