Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Compare()
[3/5]
override int System.OrdinalComparer.Compare
(
string
?
x
,
string
?
y
)
inline
inherited
Definition at line
18
of file
OrdinalComparer.cs
.
19
{
20
if
((
object
)x == y)
21
{
22
return
0;
23
}
24
if
(x ==
null
)
25
{
26
return
-1;
27
}
28
if
(y ==
null
)
29
{
30
return
1;
31
}
32
if
(
_ignoreCase
)
33
{
34
return
string
.Compare(x, y,
StringComparison
.OrdinalIgnoreCase);
35
}
36
return
string
.CompareOrdinal(x, y);
37
}
System.OrdinalComparer._ignoreCase
readonly bool _ignoreCase
Definition
OrdinalComparer.cs:11
System.StringComparison
StringComparison
Definition
StringComparison.cs:4
References
System.OrdinalComparer._ignoreCase
.
System
OrdinalIgnoreCaseComparer
Generated by
1.10.0