21 references to RemoveRef
System.Data.Common (21)
System\Data\DataColumn.cs (2)
1029
_sortIndex.
RemoveRef
();
1030
_sortIndex.
RemoveRef
(); // second should remove it from index collection
System\Data\DataRelationCollection.cs (1)
836
relation.ChildKey.GetSortIndex().
RemoveRef
();
System\Data\DataTable.cs (8)
1131
index.
RemoveRef
();
1701
oldKey.ConstraintIndex.
RemoveRef
();
1706
_loadIndex.
RemoveRef
();
1711
_loadIndexwithOriginalAdded.
RemoveRef
();
1716
_loadIndexwithCurrentDeleted.
RemoveRef
();
4652
_loadIndex?.
RemoveRef
();
4653
_loadIndexwithOriginalAdded?.
RemoveRef
();
4654
_loadIndexwithCurrentDeleted?.
RemoveRef
();
System\Data\DataView.cs (5)
919
findIndex.
RemoveRef
();
922
findIndex.
RemoveRef
(); // if we are reusing the index created by others, refcount is (2)
1026
findIndex.
RemoveRef
();
1030
findIndex.
RemoveRef
(); // if we are reusing the index created by others, refcount is (2)
1563
entry.Value.
RemoveRef
();
System\Data\DataViewListener.cs (2)
174
if (index.
RemoveRef
() <= 1)
176
index.
RemoveRef
();
System\Data\Merger.cs (2)
282
ndxSearch?.
RemoveRef
();
307
ndxSearch?.
RemoveRef
();
System\Data\UniqueConstraint.cs (1)
155
_constraintIndex.
RemoveRef
();