Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CaseInsensitiveKeyComparer.cs
Go to the documentation of this file.
3
5
7{
12
13 bool IEqualityComparer.Equals(object x, object y)
14 {
15 return Compare(x, y) == 0;
16 }
17
19 {
20 if (!(obj is string str))
21 {
22 throw new ArgumentException(null, "obj");
23 }
24 return CultureInfo.CurrentCulture.TextInfo.ToUpper(str).GetHashCode();
25 }
26}
static CultureInfo CurrentCulture
new bool Equals(object? x, object? y)