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

◆ CompareTo() [1/4]

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

Implements System.IComparable< in T >.

Definition at line 207 of file UIntPtr.cs.

208 {
209 if (value == null)
210 {
211 return 1;
212 }
214 {
215 if ((nuint)_value < (nuint)uIntPtr)
216 {
217 return -1;
218 }
219 if ((nuint)_value > (nuint)uIntPtr)
220 {
221 return 1;
222 }
223 return 0;
224 }
225 throw new ArgumentException(SR.Arg_MustBeUIntPtr);
226 }
unsafe readonly void * _value
Definition UIntPtr.cs:16
unsafe UIntPtr(uint value)
Definition UIntPtr.cs:67

References System.UIntPtr._value, System.SR.Arg_MustBeUIntPtr, System.Runtime.Serialization.Dictionary, and System.value.