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

◆ CompareTo() [1/4]

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

Implements System.IComparable< in T >.

Definition at line 430 of file String.cs.

431 {
432 if (value == null)
433 {
434 return 1;
435 }
436 if (!(value is string strB))
437 {
438 throw new ArgumentException(SR.Arg_MustBeString);
439 }
440 return CompareTo(strB);
441 }
int CompareTo(object? value)
Definition String.cs:430

References System.SR.Arg_MustBeString, System.String.CompareTo(), and System.value.

Referenced by System.String.CompareTo().