Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CLong.cs
Go to the documentation of this file.
3
5
6[CLSCompliant(false)]
7[Intrinsic]
8public readonly struct CLong : IEquatable<CLong>
9{
10 private readonly int _value;
11
12 public nint Value => _value;
13
14 public CLong(int value)
15 {
16 _value = value;
17 }
18
19 public CLong(nint value)
20 {
21 _value = checked((int)value);
22 }
23
24 public override bool Equals([NotNullWhen(true)] object? o)
25 {
26 if (o is CLong other)
27 {
28 return Equals(other);
29 }
30 return false;
31 }
32
33 public bool Equals(CLong 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 CLong.cs:24