Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CULong.cs
Go to the documentation of this file.
3
5
6[CLSCompliant(false)]
7[Intrinsic]
8public 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}
override bool Equals([NotNullWhen(true)] object? o)
Definition CULong.cs:24