5 writes to _size
PresentationCore (5)
System\Windows\Media\VisualCollection.cs (5)
462int addedPosition = _size++; 563--_size; 662_size = 0; 720_size++; 790_size -= count;
28 references to _size
PresentationCore (28)
System\Windows\Media\VisualCollection.cs (28)
53internal int InternalCount { get { return _size; } } 184ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _size); 188for (int i=0; i < _size; i++) 207ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length - _size); 211for (int i=0; i < _size; i++) 250if (value < _size) 257if (_size > 0) 260Array.Copy(_items, 0, newItems, 0, _size); 267Debug.Assert(_size == 0, "Size must be 0 here."); 327ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 336ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 458if ((_items == null) || (_size == _items.Length)) 460EnsureCapacity(_size+1); 489for (int i = 0; i < _size; i++) 551for (int i = 0; i < _size; i++) 565for (int i = indexToRemove; i < _size; i++) 575_items[_size] = null; 626for (int i=0; i < _size; i++) 653for (int i=0; i < _size; i++) 695ArgumentOutOfRangeException.ThrowIfGreaterThan(index, _size); 704if ((_items == null) || (_size == _items.Length)) 706EnsureCapacity(_size + 1); 709for (int i = _size-1; i >= index; i--) 745ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _size); 777ArgumentOutOfRangeException.ThrowIfGreaterThan(count, _size - index); 791for (int i = index; i < _size; i++) 823newIndex = destination != null ? destination._parentIndex : _size; 827Debug.Assert(newIndex >= 0 && newIndex <= _size, "New index is invalid");