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

◆ CompareTo() [1/4]

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

Implements System.IComparable< in T >.

Definition at line 38 of file UInt16.cs.

39 {
40 if (value == null)
41 {
42 return 1;
43 }
44 if (value is ushort)
45 {
46 return this - (ushort)value;
47 }
48 throw new ArgumentException(SR.Arg_MustBeUInt16);
49 }

References System.SR.Arg_MustBeUInt16, and System.value.