6 instantiations of Index
System.Data.Common (6)
System\Data\DataTable.cs (1)
3203Index ndx = new Index(this, indexDesc, recordStates, rowFilter);
System\Data\DataView.cs (1)
1588newIndex = new Index(_table, SortComparison, ((DataViewRowState)_recordStates), GetFilter());
System\Data\Merger.cs (1)
283ndxSearch = new Index(dst, dst._primaryKey!.Key.GetIndexDesc(), DataViewRowState.OriginalRows | DataViewRowState.Added, null);
System\Data\Select.cs (3)
322_index = new Index(_table, _indexFields, _recordStates, null); 390_index = new Index(_table, ndxFields, _recordStates, null); 427_index = new Index(_table, ndxFields, _recordStates, null);
76 references to Index
System.Data.Common (76)
System\Data\DataColumn.cs (3)
44internal Index? _sortIndex; 1070private Index SortIndex 1716Index index = SortIndex;
System\Data\DataColumnCollection.cs (1)
564foreach (Index _ in _table.LiveIndexes) { }
System\Data\DataKey.cs (2)
207internal Index GetSortIndex() => GetSortIndex(DataViewRowState.CurrentRows); 209internal Index GetSortIndex(DataViewRowState recordStates)
System\Data\DataRelation.cs (3)
227Index index = childKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows); 242Index index = parentKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows); 262Index index = parentKey.GetSortIndex((version == DataRowVersion.Original) ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows);
System\Data\DataTable.cs (28)
64internal readonly List<Index> _indexes; 66private List<Index>? _shadowIndexes; 102private Index? _loadIndex; 103private Index? _loadIndexwithOriginalAdded; 104private Index? _loadIndexwithCurrentDeleted; 175_indexes = new List<Index>(); 1000Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 1120internal List<Index> LiveIndexes 1128Index index = _indexes[i]; 2130internal DataRow? FindByIndex(Index ndx, object[] key) 2136internal DataRow? FindMergeTarget(DataRow row, DataKey key, Index ndx) 2169internal DataRow MergeRow(DataRow row, DataRow? targetRow, bool preserveChanges, Index? idxSearch) 3049Index index = GetIndex(NewIndexDesc(key)); 3060Index index = GetIndex(NewIndexDesc(key)); 3176internal Index GetIndex(IndexField[] indexDesc) => 3179internal Index GetIndex(string sort, DataViewRowState recordStates, IFilter? rowFilter) => 3182internal Index GetIndex(IndexField[] indexDesc, DataViewRowState recordStates, IFilter? rowFilter) 3189Index index = _indexes[i]; 3203Index ndx = new Index(this, indexDesc, recordStates, rowFilter); 3771Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 3797Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 3818Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 3841Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 4075Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 4584_shadowIndexes = new List<Index>(_indexes); 4749Index? indextoUse = null; 4796Index? index = null; 5007private DataRow LoadRow(object?[] values, LoadOption loadOption, Index? searchIndex)
System\Data\DataView.cs (10)
29private Index? _index; 30private Dictionary<string, Index>? _findIndexes; 760internal Range FindRecords<TKey, TRow>(Index.ComparisonBySelector<TKey, TRow> comparison, TKey key) where TRow : DataRow 909internal Index? GetFindIndex(string column, bool keepIndex) 911_findIndexes ??= new Dictionary<string, Index>(); 913Index? findIndex; 1005Index? findIndex = null; 1558Dictionary<string, Index> indexes = _findIndexes; 1561foreach (KeyValuePair<string, Index> entry in indexes) 1580Index? newIndex = null;
System\Data\DataViewListener.cs (3)
15private Index? _index; 150internal void RegisterListChangedEvent(Index index) 166Index? index = _index;
System\Data\ForeignKeyConstraint.cs (9)
174Index childIndex = _childKey.GetSortIndex(); 178Index parentIndex = _parentKey.GetSortIndex(); 207Index childIndex = _childKey.GetSortIndex(); 210Index parentIndex = _parentKey.GetSortIndex(); 232Index childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.Deleted : DataViewRowState.CurrentRows); 273Index childIndex = _childKey.GetSortIndex(); 362Index childIndex = _childKey.GetSortIndex(row.RowState == DataRowState.Deleted ? DataViewRowState.OriginalRows : DataViewRowState.CurrentRows); 418Index childIndex = _childKey.GetSortIndex(); 596Index parentIndex = _parentKey.GetSortIndex();
System\Data\LinqDataView.cs (5)
129Index.ComparisonBySelector<object, DataRow> compareDelg = 130new Index.ComparisonBySelector<object, DataRow>(comparerKeyRow!); 165Index.ComparisonBySelector<object, DataRow> compareDelg = 166new Index.ComparisonBySelector<object, DataRow>(comparerKeyRow!); 205new Index.ComparisonBySelector<object, DataRow>(comparerKeyRow!),
System\Data\Merger.cs (2)
199Index? ndxSearch = null; 239Index? ndxSearch = null;
System\Data\Select.cs (3)
21private Index? _index; 213Index ndx = _table._indexes[i]; 269Index ndx = _table._indexes[i];
System\Data\Selection.cs (4)
44private readonly Index _index; 46internal IndexTree(Index index) : base(TreeAccessMethod.KEY_SEARCH_AND_INDEX) 1074Debug.Assert(!Index.ContainsReference(_listeners, listener), "already contains reference"); 1080return Index.IndexOfReference(_listeners, listener);
System\Data\UniqueConstraint.cs (3)
19private Index? _constraintIndex; 127internal Index ConstraintIndex 221Index index = ConstraintIndex;