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

◆ CompareTo() [2/4]

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

Implements System.IComparable< in T >.

Definition at line 104 of file Char.cs.

105 {
106 if (value == null)
107 {
108 return 1;
109 }
110 if (!(value is char))
111 {
112 throw new ArgumentException(SR.Arg_MustBeChar);
113 }
114 return this - (char)value;
115 }

References System.SR.Arg_MustBeChar, and System.value.