Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LabelHandle.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Reflection.Metadata.Ecma335
;
4
5
public
readonly
struct
LabelHandle
:
IEquatable
<LabelHandle>
6
{
7
public
int
Id
{
get
; }
8
9
public
bool
IsNil
=>
Id
== 0;
10
11
internal
LabelHandle
(
int
id
)
12
{
13
Id
= id;
14
}
15
16
public
bool
Equals
(
LabelHandle
other
)
17
{
18
return
Id
==
other
.Id;
19
}
20
21
public
override
bool
Equals
([NotNullWhen(
true
)]
object
?
obj
)
22
{
23
if
(
obj
is
LabelHandle
other
)
24
{
25
return
Equals
(
other
);
26
}
27
return
false
;
28
}
29
30
public
override
int
GetHashCode
()
31
{
32
return
Id
.GetHashCode();
33
}
34
35
public
static
bool
operator ==
(
LabelHandle
left,
LabelHandle
right)
36
{
37
return
left.
Equals
(right);
38
}
39
40
public
static
bool
operator !=
(
LabelHandle
left,
LabelHandle
right)
41
{
42
return
!left.
Equals
(right);
43
}
44
}
System.IEquatable
Definition
IEquatable.cs:4
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Reflection.Metadata.Ecma335
Definition
ArrayShapeEncoder.cs:3
System.ExceptionArgument.other
@ other
System.ExceptionArgument.obj
@ obj
System.Reflection.Metadata.Ecma335.LabelHandle.operator!=
static bool operator!=(LabelHandle left, LabelHandle right)
Definition
LabelHandle.cs:40
System.Reflection.Metadata.Ecma335.LabelHandle.IsNil
bool IsNil
Definition
LabelHandle.cs:9
System.Reflection.Metadata.Ecma335.LabelHandle.GetHashCode
override int GetHashCode()
Definition
LabelHandle.cs:30
System.Reflection.Metadata.Ecma335.LabelHandle.Equals
override bool Equals([NotNullWhen(true)] object? obj)
Definition
LabelHandle.cs:21
System.Reflection.Metadata.Ecma335.LabelHandle.LabelHandle
LabelHandle(int id)
Definition
LabelHandle.cs:11
System.Reflection.Metadata.Ecma335.LabelHandle.Equals
bool Equals(LabelHandle other)
Definition
LabelHandle.cs:16
System.Reflection.Metadata.Ecma335.LabelHandle.operator==
static bool operator==(LabelHandle left, LabelHandle right)
Definition
LabelHandle.cs:35
System.Reflection.Metadata.Ecma335.LabelHandle.Id
int Id
Definition
LabelHandle.cs:7
System.Reflection.Metadata.Ecma335.LabelHandle
Definition
LabelHandle.cs:6
source
System.Reflection.Metadata
System.Reflection.Metadata.Ecma335
LabelHandle.cs
Generated by
1.10.0