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

◆ AddRef()

void System.Data.Index.AddRef ( )
inline

Definition at line 196 of file Index.cs.

197 {
198 DataCommonEventSource.Log.Trace("<ds.Index.AddRef|API> {0}", ObjectID);
200 try
201 {
202 if (_refCount == 0)
203 {
205 _table._indexes.Add(this);
206 }
207 _refCount++;
208 }
209 finally
210 {
212 }
213 }
void Add(TKey key, TValue value)
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.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Threading.ReaderWriterLockSlim.EnterWriteLock(), System.Threading.ReaderWriterLockSlim.ExitWriteLock(), System.Data.DataCommonEventSource.Log, System.Data.Index.ObjectID, and System.Data.DataTable.ShadowIndexCopy().

Referenced by System.Data.DataRelationCollection.DataSetRelationCollection.AddCore(), System.Data.DataTable.BeginLoadData(), System.Data.UniqueConstraint.ConstraintIndexInitialize(), System.Data.Select.CreateIndex(), System.Data.DataView.Find(), and System.Data.DataTable.LoadDataRow().