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

◆ CompareTo() [2/4]

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

Implements System.IComparable< in T >.

Definition at line 40 of file Int64.cs.

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

References System.SR.Arg_MustBeInt64, and System.value.