3 writes to _unmanagedHandles
PresentationFramework (3)
MS\Internal\PtsHost\PtsContext.cs (3)
48_unmanagedHandles = new HandleIndex[_defaultHandlesCapacity]; // Limit initial size 162_unmanagedHandles = null; 450_unmanagedHandles = newItems;
30 references to _unmanagedHandles
PresentationFramework (30)
MS\Internal\PtsHost\PtsContext.cs (30)
113if (Invariant.Strict && _unmanagedHandles != null) 118for (index = 0; index < _unmanagedHandles.Length; ++index) 120Object obj = _unmanagedHandles[index].Obj; 135for (int i = 0; i < _unmanagedHandles.Length; ++i) 137Object objDbg = _unmanagedHandles[i].Obj; 185if (_unmanagedHandles[0].Index == 0) 191long handle = _unmanagedHandles[0].Index; 192_unmanagedHandles[0].Index = _unmanagedHandles[handle].Index; 193_unmanagedHandles[handle].Obj = obj; 194_unmanagedHandles[handle].Index = 0; 211Invariant.Assert(handleLong > 0 && handleLong < _unmanagedHandles.Length, "Invalid object handle."); 212Invariant.Assert(_unmanagedHandles[handleLong].IsHandle(), "Handle has been already released."); 213_unmanagedHandles[handleLong].Obj = null; 214_unmanagedHandles[handleLong].Index = _unmanagedHandles[0].Index; 215_unmanagedHandles[0].Index = handleLong; 229if (handleLong < 0 || handleLong >= _unmanagedHandles.Length) 233return _unmanagedHandles[handleLong].IsHandle(); 248Invariant.Assert(handleLong > 0 && handleLong < _unmanagedHandles.Length, "Invalid object handle."); 249Invariant.Assert(_unmanagedHandles[handleLong].IsHandle(), "Handle has been already released."); 250return _unmanagedHandles[handleLong].Obj; 429_unmanagedHandles[0].Index = freeIndex; 431while (freeIndex < _unmanagedHandles.Length) 433_unmanagedHandles[freeIndex].Index = ++freeIndex; 436_unmanagedHandles[freeIndex - 1].Index = 0; 445int freeIndex = _unmanagedHandles.Length; 448HandleIndex[] newItems = new HandleIndex[_unmanagedHandles.Length * 2]; 449Array.Copy(_unmanagedHandles, newItems, _unmanagedHandles.Length);