Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
GenericParameterConstraintHandle.cs
Go to the documentation of this file.
1
namespace
System.Reflection.Metadata
;
2
3
public
readonly
struct
GenericParameterConstraintHandle
:
IEquatable
<GenericParameterConstraintHandle>
4
{
5
private
readonly
int
_rowId
;
6
7
public
bool
IsNil
=>
RowId
== 0;
8
9
internal
int
RowId
=>
_rowId
;
10
11
private
GenericParameterConstraintHandle
(
int
rowId)
12
{
13
_rowId
= rowId;
14
}
11
private
GenericParameterConstraintHandle
(
int
rowId) {
…
}
15
16
internal
static
GenericParameterConstraintHandle
FromRowId
(
int
rowId)
17
{
18
return
new
GenericParameterConstraintHandle
(rowId);
19
}
16
internal
static
GenericParameterConstraintHandle
FromRowId
(
int
rowId) {
…
}
20
21
public
static
implicit
operator
Handle
(
GenericParameterConstraintHandle
handle
)
22
{
23
return
new
Handle
(44,
handle
._rowId);
24
}
21
public
static
implicit
operator
Handle
(
GenericParameterConstraintHandle
handle
) {
…
}
25
26
public
static
implicit
operator
EntityHandle
(
GenericParameterConstraintHandle
handle
)
27
{
28
return
new
EntityHandle
((uint)(0x2C000000uL | (ulong)
handle
._rowId));
29
}
26
public
static
implicit
operator
EntityHandle
(
GenericParameterConstraintHandle
handle
) {
…
}
30
31
public
static
explicit
operator
GenericParameterConstraintHandle
(
Handle
handle
)
32
{
33
if
(
handle
.VType != 44)
34
{
35
Throw
.
InvalidCast
();
36
}
37
return
new
GenericParameterConstraintHandle
(
handle
.RowId);
38
}
31
public
static
explicit
operator
GenericParameterConstraintHandle
(
Handle
handle
) {
…
}
39
40
public
static
explicit
operator
GenericParameterConstraintHandle
(
EntityHandle
handle
)
41
{
42
if
(
handle
.VType != 738197504)
43
{
44
Throw
.
InvalidCast
();
45
}
46
return
new
GenericParameterConstraintHandle
(
handle
.RowId);
47
}
40
public
static
explicit
operator
GenericParameterConstraintHandle
(
EntityHandle
handle
) {
…
}
48
49
public
static
bool
operator ==
(
GenericParameterConstraintHandle
left,
GenericParameterConstraintHandle
right)
50
{
51
return
left._rowId == right.
_rowId
;
52
}
49
public
static
bool
operator ==
(
GenericParameterConstraintHandle
left,
GenericParameterConstraintHandle
right) {
…
}
53
54
public
override
bool
Equals
(
object
?
obj
)
55
{
56
if
(
obj
is
GenericParameterConstraintHandle
)
57
{
58
return
((
GenericParameterConstraintHandle
)
obj
)._rowId ==
_rowId
;
59
}
60
return
false
;
61
}
54
public
override
bool
Equals
(
object
?
obj
) {
…
}
62
63
public
bool
Equals
(
GenericParameterConstraintHandle
other
)
64
{
65
return
_rowId
==
other
._rowId;
66
}
63
public
bool
Equals
(
GenericParameterConstraintHandle
other
) {
…
}
67
68
public
override
int
GetHashCode
()
69
{
70
return
_rowId
.GetHashCode();
71
}
68
public
override
int
GetHashCode
() {
…
}
72
73
public
static
bool
operator !=
(
GenericParameterConstraintHandle
left,
GenericParameterConstraintHandle
right)
74
{
75
return
left._rowId != right.
_rowId
;
76
}
73
public
static
bool
operator !=
(
GenericParameterConstraintHandle
left,
GenericParameterConstraintHandle
right) {
…
}
77
}
3
public
readonly
struct
GenericParameterConstraintHandle
:
IEquatable
<GenericParameterConstraintHandle> {
…
};
System.Reflection.Throw.InvalidCast
static void InvalidCast()
Definition
Throw.cs:12
System.Reflection.Throw
Definition
Throw.cs:9
System.IEquatable
Definition
IEquatable.cs:4
System.Reflection.Metadata
Definition
AssemblyExtensions.cs:4
System.ExceptionArgument.other
@ other
System.ExceptionArgument.obj
@ obj
System.ExceptionArgument.handle
@ handle
System.Reflection.Metadata.EntityHandle
Definition
EntityHandle.cs:6
System.Reflection.Metadata.GenericParameterConstraintHandle.IsNil
bool IsNil
Definition
GenericParameterConstraintHandle.cs:7
System.Reflection.Metadata.GenericParameterConstraintHandle.RowId
int RowId
Definition
GenericParameterConstraintHandle.cs:9
System.Reflection.Metadata.GenericParameterConstraintHandle.GenericParameterConstraintHandle
GenericParameterConstraintHandle(int rowId)
Definition
GenericParameterConstraintHandle.cs:11
System.Reflection.Metadata.GenericParameterConstraintHandle.Equals
override bool Equals(object? obj)
Definition
GenericParameterConstraintHandle.cs:54
System.Reflection.Metadata.GenericParameterConstraintHandle.operator==
static bool operator==(GenericParameterConstraintHandle left, GenericParameterConstraintHandle right)
Definition
GenericParameterConstraintHandle.cs:49
System.Reflection.Metadata.GenericParameterConstraintHandle.FromRowId
static GenericParameterConstraintHandle FromRowId(int rowId)
Definition
GenericParameterConstraintHandle.cs:16
System.Reflection.Metadata.GenericParameterConstraintHandle.operator!=
static bool operator!=(GenericParameterConstraintHandle left, GenericParameterConstraintHandle right)
Definition
GenericParameterConstraintHandle.cs:73
System.Reflection.Metadata.GenericParameterConstraintHandle.Equals
bool Equals(GenericParameterConstraintHandle other)
Definition
GenericParameterConstraintHandle.cs:63
System.Reflection.Metadata.GenericParameterConstraintHandle._rowId
readonly int _rowId
Definition
GenericParameterConstraintHandle.cs:5
System.Reflection.Metadata.GenericParameterConstraintHandle.GetHashCode
override int GetHashCode()
Definition
GenericParameterConstraintHandle.cs:68
System.Reflection.Metadata.GenericParameterConstraintHandle
Definition
GenericParameterConstraintHandle.cs:4
System.Reflection.Metadata.Handle
Definition
Handle.cs:6
source
System.Reflection.Metadata
System.Reflection.Metadata
GenericParameterConstraintHandle.cs
Generated by
1.10.0