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

◆ CompareTo() [2/4]

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

Implements System.IComparable< in T >.

Definition at line 301 of file Half.cs.

302 {
303 if (!(obj is Half))
304 {
305 if (obj != null)
306 {
307 throw new ArgumentException(SR.Arg_MustBeHalf);
308 }
309 return 1;
310 }
311 return CompareTo((Half)obj);
312 }
Half(ushort value)
Definition Half.cs:78
int CompareTo(object? obj)
Definition Half.cs:301

References System.SR.Arg_MustBeHalf, System.Half.CompareTo(), and System.obj.

Referenced by System.Half.CompareTo().