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)
836relation.ChildKey.GetSortIndex().RemoveRef();
System\Data\DataTable.cs (8)
1131index.RemoveRef(); 1701oldKey.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)
919findIndex.RemoveRef(); 922findIndex.RemoveRef(); // if we are reusing the index created by others, refcount is (2) 1026findIndex.RemoveRef(); 1030findIndex.RemoveRef(); // if we are reusing the index created by others, refcount is (2) 1563entry.Value.RemoveRef();
System\Data\DataViewListener.cs (2)
174if (index.RemoveRef() <= 1) 176index.RemoveRef();
System\Data\Merger.cs (2)
282ndxSearch?.RemoveRef(); 307ndxSearch?.RemoveRef();
System\Data\UniqueConstraint.cs (1)
155_constraintIndex.RemoveRef();