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

◆ CompareTo() [1/4]

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

Implements System.IComparable< in T >.

Definition at line 38 of file UInt32.cs.

39 {
40 if (value == null)
41 {
42 return 1;
43 }
44 if (value is uint 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_MustBeUInt32);
57 }

References System.SR.Arg_MustBeUInt32, and System.value.