6 instantiations of IndexField
System.Data.Common (6)
System\Data\DataColumn.cs (1)
1076
var indexDesc = new IndexField[] { new
IndexField
(this, false) };
System\Data\DataKey.cs (1)
192
indexDesc[i] = new
IndexField
(_columns[i], false);
System\Data\DataTable.cs (1)
3749
indexDesc[i] = new
IndexField
(column, descending);
System\Data\Select.cs (2)
363
ndxFields[j++] = new
IndexField
(_table.Columns[i], isDescending: false);
417
ndxFields[j++] = new
IndexField
(_table.Columns[i], isDescending: false);
System\Data\Selection.cs (1)
104
fields[i] = new
IndexField
(columns[i], false);
43 references to IndexField
System.Data.Common (43)
System\Data\DataColumn.cs (1)
1076
var indexDesc = new
IndexField
[] { new IndexField(this, false) };
System\Data\DataKey.cs (4)
187
internal
IndexField
[] GetIndexDesc()
189
IndexField
[] indexDesc = new
IndexField
[_columns.Length];
211
IndexField
[] indexDesc = GetIndexDesc();
System\Data\DataTable.cs (16)
98
internal
IndexField
[] _primaryIndex = Array.Empty<
IndexField
>();
1731
_primaryIndex = (key != null) ? key.Key.GetIndexDesc() : Array.Empty<
IndexField
>();
3069
internal static string FormatSortString(
IndexField
[] indexDesc)
3072
foreach (
IndexField
field in indexDesc)
3176
internal Index GetIndex(
IndexField
[] indexDesc) =>
3182
internal Index GetIndex(
IndexField
[] indexDesc, DataViewRowState recordStates, IFilter? rowFilter)
3371
private static
IndexField
[] NewIndexDesc(DataKey key)
3374
IndexField
[] indexDesc = key.GetIndexDesc();
3375
IndexField
[] newIndexDesc = new
IndexField
[indexDesc.Length];
3705
internal
IndexField
[] ParseSortString(string? sortString)
3707
IndexField
[] indexDesc = Array.Empty<
IndexField
>();
3711
indexDesc = new
IndexField
[split.Length];
4085
foreach (
IndexField
field in ndx._indexFields)
System\Data\Select.cs (8)
16
private readonly
IndexField
[] _indexFields;
181
private bool CompareSortIndexDesc(
IndexField
[] fields)
235
private int CompareClosestCandidateIndexDesc(
IndexField
[] fields)
354
IndexField
[] ndxFields = new
IndexField
[_nCandidates + indexNotInCandidates];
431
IndexField
[] fields = _index._indexFields;
478
IndexField
[] fields = _index!._indexFields;
735
IndexField
[] fields = _index._indexFields;
System\Data\Selection.cs (14)
12
internal readonly struct IndexField : IEquatable<
IndexField
>
25
public static bool operator ==(
IndexField
if1,
IndexField
if2) => if1.Equals(if2);
27
public static bool operator !=(
IndexField
if1,
IndexField
if2) => !if1.Equals(if2);
31
obj is
IndexField
other && Equals(other);
33
public bool Equals(
IndexField
other) => Column == other.Column && IsDescending == other.IsDescending;
64
internal readonly
IndexField
[] _indexFields;
88
public Index(DataTable table,
IndexField
[] indexFields, DataViewRowState recordStates, IFilter? rowFilter) :
99
private static
IndexField
[] GetAllFields(DataColumnCollection columns)
101
IndexField
[] fields = new
IndexField
[columns.Count];
109
private Index(DataTable table,
IndexField
[] indexFields, System.Comparison<DataRow>? comparison, DataViewRowState recordStates, IFilter? rowFilter)
143
public bool Equal(
IndexField
[] indexDesc, DataViewRowState recordStates, IFilter? rowFilter)