6 instantiations of IndexField
System.Data.Common (6)
System\Data\DataColumn.cs (1)
1075var indexDesc = new IndexField[] { new IndexField(this, false) };
System\Data\DataKey.cs (1)
192indexDesc[i] = new IndexField(_columns[i], false);
System\Data\DataTable.cs (1)
3744indexDesc[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)
1075var 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>(); 1726_primaryIndex = (key != null) ? key.Key.GetIndexDesc() : Array.Empty<IndexField>(); 3064internal static string FormatSortString(IndexField[] indexDesc) 3067foreach (IndexField field in indexDesc) 3171internal Index GetIndex(IndexField[] indexDesc) => 3177internal Index GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter? rowFilter) 3366private static IndexField[] NewIndexDesc(DataKey key) 3369IndexField[] indexDesc = key.GetIndexDesc(); 3370IndexField[] newIndexDesc = new IndexField[indexDesc.Length]; 3700internal IndexField[] ParseSortString(string? sortString) 3702IndexField[] indexDesc = Array.Empty<IndexField>(); 3706indexDesc = new IndexField[split.Length]; 4080foreach (IndexField field in ndx._indexFields)
System\Data\Select.cs (8)
15private 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; 739IndexField[] 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)