Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Int32Pair.cs
Go to the documentation of this file.
2
3namespace System.Xml.Xsl;
4
5internal struct Int32Pair
6{
7 private readonly int _left;
8
9 private readonly int _right;
10
11 public int Left => _left;
12
13 public int Right => _right;
14
15 public Int32Pair(int left, int right)
16 {
17 _left = left;
18 _right = right;
19 }
20
21 public override bool Equals([NotNullWhen(true)] object other)
22 {
24 {
25 if (_left == int32Pair._left)
26 {
27 return _right == int32Pair._right;
28 }
29 return false;
30 }
31 return false;
32 }
33
34 public override int GetHashCode()
35 {
36 return _left.GetHashCode() ^ _right.GetHashCode();
37 }
38}
readonly int _right
Definition Int32Pair.cs:9
override int GetHashCode()
Definition Int32Pair.cs:34
override bool Equals([NotNullWhen(true)] object other)
Definition Int32Pair.cs:21
Int32Pair(int left, int right)
Definition Int32Pair.cs:15