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

◆ CompareTo() [1/4]

int System.UInt64.CompareTo ( object? value)
inline

Implements System.IComparable< in T >.

Definition at line 38 of file UInt64.cs.

39 {
40 if (value == null)
41 {
42 return 1;
43 }
44 if (value is ulong num)
45 {
46 if (this < num)
47 {
48 return -1;
49 }
50 if (this > num)
51 {
52 return 1;
53 }
54 return 0;
55 }
56 throw new ArgumentException(SR.Arg_MustBeUInt64);
57 }

References System.SR.Arg_MustBeUInt64, and System.value.