3 writes to _items
System.Data (3)
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (3)
69
_items
= new CollectionEntry[DefaultCollectionSize];
113
Array.Resize<CollectionEntry>(ref
_items
, _items.Length * 2);
179
_items
= new CollectionEntry[DefaultCollectionSize];
19 references to _items
System.Data (19)
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (19)
84
if (
_items
[i].Tag == 0) {
85
_items
[i].NewTarget(tag, value);
86
Debug.Assert(
_items
[i].HasTarget, "missing expected target");
93
if ((!itemAdded) && (_lastItemIndex + 1 <
_items
.Length)) {
95
_items
[_lastItemIndex].NewTarget(tag, value);
102
if (!
_items
[i].HasTarget) {
103
_items
[i].NewTarget(tag, value);
104
Debug.Assert(
_items
[i].HasTarget, "missing expected target");
113
Array.Resize<CollectionEntry>(ref _items,
_items
.Length * 2);
115
_items
[_lastItemIndex].NewTarget(tag, value);
131
if (
_items
[counter].Tag == tag) {
134
object value =
_items
[counter].Target;
166
object value =
_items
[index].Target; // checks tag & gets target
168
NotifyItem(message,
_items
[index].Tag, value);
169
_items
[index].RemoveTarget();
171
Debug.Assert(!
_items
[index].HasTarget, "Unexpected target after notifying");
177
if (
_items
.Length > 100) {
207
if (value ==
_items
[index].Target) { // checks tag & gets target
208
_items
[index].RemoveTarget();