15 references to IsInvalid
System.Runtime.Caching (15)
System\Runtime\Caching\CacheUsage.cs (14)
151
Debug.Assert(_lastRefHead.
IsInvalid
, "_lastRefHead.IsInvalid");
152
Debug.Assert(_lastRefTail.
IsInvalid
, "_lastRefTail.IsInvalid");
153
Debug.Assert(_addRef2Head.
IsInvalid
, "_addRef2Head.IsInvalid");
318
Debug.Assert(((entries)[0]._ref1._next).
IsInvalid
, "FreeEntryHead(entries).IsInvalid");
523
Debug.Assert(cacheEntry.UsageEntryRef.
IsInvalid
, "cacheEntry.UsageEntryRef.IsInvalid");
533
if (_lastRefHead.
IsInvalid
)
545
if (_addRef2Head.
IsInvalid
)
604
if (entryRef.
IsInvalid
)
631
if (entryRef.
IsInvalid
)
699
for (prev = _lastRefTail; _cEntriesInFlush < maxFlush && !prev.
IsInvalid
; prev = prevNext)
754
Debug.Assert(!inFlushHead.
IsInvalid
, "!inFlushHead.IsInvalid");
759
while (!current.
IsInvalid
)
769
Debug.Assert(cacheEntry.UsageEntryRef.
IsInvalid
, "cacheEntry.UsageEntryRef.IsInvalid");
782
while (!current.
IsInvalid
)
System\Runtime\Caching\MemoryCacheEntry.cs (1)
223
return !_usageEntryRef.
IsInvalid
;