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

◆ CompareTo() [2/4]

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

Implements System.IComparable< in T >.

Definition at line 37 of file Byte.cs.

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

References System.SR.Arg_MustBeByte, and System.value.