Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FindSortIndex()

bool System.Data.Select.FindSortIndex ( )
inlineprivate

Definition at line 220 of file Select.cs.

221 {
222 _index = null;
223 _table._indexesLock.EnterUpgradeableReadLock();
224 try
225 {
227 for (int i = 0; i < count; i++)
228 {
230 if (index.RecordStates == _recordStates && index.IsSharable && CompareSortIndexDesc(index._indexFields))
231 {
232 _index = index;
233 return true;
234 }
235 }
236 }
237 finally
238 {
239 _table._indexesLock.ExitUpgradeableReadLock();
240 }
241 return false;
242 }
readonly ReaderWriterLockSlim _indexesLock
Definition DataTable.cs:194
readonly List< Index > _indexes
Definition DataTable.cs:76
readonly DataViewRowState _recordStates
Definition Select.cs:23
readonly DataTable _table
Definition Select.cs:19
bool CompareSortIndexDesc(IndexField[] fields)
Definition Select.cs:193

References System.Data.Select._index, System.Data.DataTable._indexes, System.Data.DataTable._indexesLock, System.Data.Select._recordStates, System.Data.Select._table, System.Data.Select.CompareSortIndexDesc(), System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.index.

Referenced by System.Data.Select.SelectRows().