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

◆ CompareTo() [1/4]

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

Implements System.IComparable< in T >.

Definition at line 40 of file Int16.cs.

41 {
42 if (value == null)
43 {
44 return 1;
45 }
46 if (value is short)
47 {
48 return this - (short)value;
49 }
50 throw new ArgumentException(SR.Arg_MustBeInt16);
51 }

References System.SR.Arg_MustBeInt16, and System.value.