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

◆ RemoveRef()

int System.Data.Index.RemoveRef ( )
inline

Definition at line 215 of file Index.cs.

216 {
217 DataCommonEventSource.Log.Trace("<ds.Index.RemoveRef|API> {0}", ObjectID);
219 int result;
220 try
221 {
222 result = --_refCount;
223 if (_refCount <= 0)
224 {
226 _table._indexes.Remove(this);
227 }
228 }
229 finally
230 {
232 }
233 return result;
234 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
readonly ReaderWriterLockSlim _indexesLock
Definition DataTable.cs:194
readonly List< Index > _indexes
Definition DataTable.cs:76
readonly DataTable _table
Definition Index.cs:32

References System.Data.DataTable._indexes, System.Data.DataTable._indexesLock, System.Data.Index._refCount, System.Data.Index._table, System.Threading.ReaderWriterLockSlim.EnterWriteLock(), System.Threading.ReaderWriterLockSlim.ExitWriteLock(), System.Data.DataCommonEventSource.Log, System.Data.Index.ObjectID, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), and System.Data.DataTable.ShadowIndexCopy().

Referenced by System.Data.UniqueConstraint.ConstraintIndexClear(), System.Data.DataTable.EndLoadData(), System.Data.DataRelationCollection.DataSetRelationCollection.RemoveCore(), and System.Data.DataColumn.SetOrdinalInternal().