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

◆ Equals() [1/2]

new bool System.Net.CaseInsensitiveAscii.Equals ( object firstObject,
object secondObject )
inline

Definition at line 92 of file CaseInsensitiveAscii.cs.

93 {
94 string text = firstObject as string;
95 string text2 = secondObject as string;
96 if (text == null)
97 {
98 return text2 == null;
99 }
100 if (text2 != null)
101 {
102 int num = text.Length;
103 if (num == text2.Length && FastGetHashCode(text) == FastGetHashCode(text2))
104 {
105 while (num > 0)
106 {
107 num--;
108 if (AsciiToLower[text[num]] != AsciiToLower[text2[num]])
109 {
110 return false;
111 }
112 }
113 return true;
114 }
115 }
116 return false;
117 }
static ReadOnlySpan< byte > AsciiToLower

References System.Net.CaseInsensitiveAscii.AsciiToLower, System.Net.CaseInsensitiveAscii.FastGetHashCode(), and System.text.