Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StringSequence2.cs
Go to the documentation of this file.
2
4
5internal struct StringSequence2 : IEquatable<StringSequence2>, IStringSequence
6{
7 public string Value1;
8
9 public string Value2;
10
11 public StringSequence2(string value1, string value2)
12 {
13 Value1 = value1;
14 Value2 = value2;
15 }
16
18 {
19 if (Value1 == other.Value1)
20 {
21 return Value2 == other.Value2;
22 }
23 return false;
24 }
25
26 public override bool Equals(object obj)
27 {
29 {
30 return Equals(other);
31 }
32 return false;
33 }
34
36 {
37 return MemoryMarshal.CreateSpan(ref Value1, 2);
38 }
39
40 public override int GetHashCode()
41 {
42 return HashCode.Combine(Value1, Value2);
43 }
44}
StringSequence2(string value1, string value2)