Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Int32Pair.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Xml.Xsl
;
4
5
internal
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
{
23
if
(
other
is
Int32Pair
int32Pair
)
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
}
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Xml.Xsl
Definition
BranchingContext.cs:1
System.Xml.ValueHandleType.Dictionary
@ Dictionary
System.ExceptionArgument.other
@ other
System.Xml.Xsl.Int32Pair.Left
int Left
Definition
Int32Pair.cs:11
System.Xml.Xsl.Int32Pair._right
readonly int _right
Definition
Int32Pair.cs:9
System.Xml.Xsl.Int32Pair.GetHashCode
override int GetHashCode()
Definition
Int32Pair.cs:34
System.Xml.Xsl.Int32Pair.Right
int Right
Definition
Int32Pair.cs:13
System.Xml.Xsl.Int32Pair.Equals
override bool Equals([NotNullWhen(true)] object other)
Definition
Int32Pair.cs:21
System.Xml.Xsl.Int32Pair.Int32Pair
Int32Pair(int left, int right)
Definition
Int32Pair.cs:15
System.Xml.Xsl.Int32Pair._left
readonly int _left
Definition
Int32Pair.cs:7
System.Xml.Xsl.Int32Pair
Definition
Int32Pair.cs:6
source
System.Private.Xml
System.Xml.Xsl
Int32Pair.cs
Generated by
1.10.0