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