Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
OrdinalCaseSensitiveComparer.cs
Go to the documentation of this file.
2
3namespace System;
4
7{
9
14
15 public override int Compare(string x, string y)
16 {
17 return string.CompareOrdinal(x, y);
18 }
19
20 public override bool Equals(string x, string y)
21 {
22 return string.Equals(x, y);
23 }
24
25 public override int GetHashCode(string obj)
26 {
27 if (obj == null)
28 {
30 }
31 return obj.GetHashCode();
32 }
33
35 {
36 info.SetType(typeof(OrdinalComparer));
37 info.AddValue("_ignoreCase", value: false);
38 }
39}
void GetObjectData(SerializationInfo info, StreamingContext context)
override bool Equals(string x, string y)
static readonly OrdinalCaseSensitiveComparer Instance
static void ThrowArgumentNullException(string name)