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

◆ CompareTo() [1/4]

int System.SByte.CompareTo ( object? obj)
inline

Implements System.IComparable< in T >.

Definition at line 41 of file SByte.cs.

42 {
43 if (obj == null)
44 {
45 return 1;
46 }
47 if (!(obj is sbyte))
48 {
49 throw new ArgumentException(SR.Arg_MustBeSByte);
50 }
51 return this - (sbyte)obj;
52 }

References System.SR.Arg_MustBeSByte, and System.obj.