Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CULong.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
using
System.Runtime.CompilerServices
;
3
4
namespace
System.Runtime.InteropServices
;
5
6
[CLSCompliant(
false
)]
7
[Intrinsic]
8
public
readonly
struct
CULong
:
IEquatable
<CULong>
9
{
10
private
readonly uint
_value
;
11
12
public
nuint
Value
=>
_value
;
13
14
public
CULong
(uint
value
)
15
{
16
_value
=
value
;
17
}
18
19
public
CULong
(nuint
value
)
20
{
21
_value
= checked((uint)
value
);
22
}
23
24
public
override
bool
Equals
([NotNullWhen(
true
)]
object
? o)
25
{
26
if
(o is
CULong
other
)
27
{
28
return
Equals
(
other
);
29
}
30
return
false
;
31
}
32
33
public
bool
Equals
(
CULong
other
)
34
{
35
return
_value
==
other
._value;
36
}
37
38
public
override
int
GetHashCode
()
39
{
40
return
_value
.GetHashCode();
41
}
42
43
public
override
string
ToString
()
44
{
45
return
_value
.ToString();
46
}
47
}
System.IEquatable
Definition
IEquatable.cs:4
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.ExceptionArgument.value
@ value
System.ExceptionArgument.other
@ other
System.Runtime.InteropServices.CULong._value
readonly uint _value
Definition
CULong.cs:10
System.Runtime.InteropServices.CULong.CULong
CULong(uint value)
Definition
CULong.cs:14
System.Runtime.InteropServices.CULong.CULong
CULong(nuint value)
Definition
CULong.cs:19
System.Runtime.InteropServices.CULong.GetHashCode
override int GetHashCode()
Definition
CULong.cs:38
System.Runtime.InteropServices.CULong.Equals
bool Equals(CULong other)
Definition
CULong.cs:33
System.Runtime.InteropServices.CULong.Value
nuint Value
Definition
CULong.cs:12
System.Runtime.InteropServices.CULong.Equals
override bool Equals([NotNullWhen(true)] object? o)
Definition
CULong.cs:24
System.Runtime.InteropServices.CULong.ToString
override string ToString()
Definition
CULong.cs:43
System.Runtime.InteropServices.CULong
Definition
CULong.cs:9
source
System.Private.CoreLib
System.Runtime.InteropServices
CULong.cs
Generated by
1.10.0