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

◆ CompareTo() [2/4]

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

Implements System.IComparable< in T >.

Definition at line 2321 of file Decimal.cs.

2322 {
2323 if (value == null)
2324 {
2325 return 1;
2326 }
2327 if (!(value is decimal d))
2328 {
2329 throw new ArgumentException(SR.Arg_MustBeDecimal);
2330 }
2331 return DecCalc.VarDecCmp(in this, in d);
2332 }

References System.SR.Arg_MustBeDecimal, System.Runtime.Serialization.Dictionary, System.value, and System.Decimal.DecCalc.VarDecCmp().