3 writes to _unmanagedHandles
PresentationFramework (3)
MS\Internal\PtsHost\PtsContext.cs (3)
51_unmanagedHandles = new HandleIndex[_defaultHandlesCapacity]; // Limit initial size 165_unmanagedHandles = null; 453_unmanagedHandles = newItems;
30 references to _unmanagedHandles
PresentationFramework (30)
MS\Internal\PtsHost\PtsContext.cs (30)
116if (Invariant.Strict && _unmanagedHandles != null) 121for (index = 0; index < _unmanagedHandles.Length; ++index) 123Object obj = _unmanagedHandles[index].Obj; 138for (int i = 0; i < _unmanagedHandles.Length; ++i) 140Object objDbg = _unmanagedHandles[i].Obj; 188if (_unmanagedHandles[0].Index == 0) 194long handle = _unmanagedHandles[0].Index; 195_unmanagedHandles[0].Index = _unmanagedHandles[handle].Index; 196_unmanagedHandles[handle].Obj = obj; 197_unmanagedHandles[handle].Index = 0; 214Invariant.Assert(handleLong > 0 && handleLong < _unmanagedHandles.Length, "Invalid object handle."); 215Invariant.Assert(_unmanagedHandles[handleLong].IsHandle(), "Handle has been already released."); 216_unmanagedHandles[handleLong].Obj = null; 217_unmanagedHandles[handleLong].Index = _unmanagedHandles[0].Index; 218_unmanagedHandles[0].Index = handleLong; 232if (handleLong < 0 || handleLong >= _unmanagedHandles.Length) 236return _unmanagedHandles[handleLong].IsHandle(); 251Invariant.Assert(handleLong > 0 && handleLong < _unmanagedHandles.Length, "Invalid object handle."); 252Invariant.Assert(_unmanagedHandles[handleLong].IsHandle(), "Handle has been already released."); 253return _unmanagedHandles[handleLong].Obj; 432_unmanagedHandles[0].Index = freeIndex; 434while (freeIndex < _unmanagedHandles.Length) 436_unmanagedHandles[freeIndex].Index = ++freeIndex; 439_unmanagedHandles[freeIndex - 1].Index = 0; 448int freeIndex = _unmanagedHandles.Length; 451HandleIndex[] newItems = new HandleIndex[_unmanagedHandles.Length * 2]; 452Array.Copy(_unmanagedHandles, newItems, _unmanagedHandles.Length);