Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IndexField.cs
Go to the documentation of this file.
2
3namespace System.Data;
4
5internal readonly struct IndexField
6{
7 public readonly DataColumn Column;
8
9 public readonly bool IsDescending;
10
11 internal IndexField(DataColumn column, bool isDescending)
12 {
13 Column = column;
14 IsDescending = isDescending;
15 }
16
17 public static bool operator ==(IndexField if1, IndexField if2)
18 {
19 if (if1.Column == if2.Column)
20 {
21 return if1.IsDescending == if2.IsDescending;
22 }
23 return false;
24 }
25
26 public override bool Equals([NotNullWhen(true)] object obj)
27 {
28 if (!(obj is IndexField))
29 {
30 return false;
31 }
32 return this == (IndexField)obj;
33 }
34
35 public override int GetHashCode()
36 {
37 return Column.GetHashCode() ^ IsDescending.GetHashCode();
38 }
39}
IndexField(DataColumn column, bool isDescending)
Definition IndexField.cs:11
static bool operator==(IndexField if1, IndexField if2)
Definition IndexField.cs:17
override bool Equals([NotNullWhen(true)] object obj)
Definition IndexField.cs:26
readonly bool IsDescending
Definition IndexField.cs:9
override int GetHashCode()
Definition IndexField.cs:35
readonly DataColumn Column
Definition IndexField.cs:7