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");
531
Debug.Assert(cacheEntry.UsageEntryRef.
IsInvalid
, "cacheEntry.UsageEntryRef.IsInvalid");
541
if (_lastRefHead.
IsInvalid
)
553
if (_addRef2Head.
IsInvalid
)
612
if (entryRef.
IsInvalid
)
639
if (entryRef.
IsInvalid
)
707
for (prev = _lastRefTail; _cEntriesInFlush < maxFlush && !prev.
IsInvalid
; prev = prevNext)
761
Debug.Assert(!inFlushHead.
IsInvalid
, "!inFlushHead.IsInvalid");
766
while (!current.
IsInvalid
)
775
Debug.Assert(cacheEntry.UsageEntryRef.
IsInvalid
, "cacheEntry.UsageEntryRef.IsInvalid");
788
while (!current.
IsInvalid
)
System\Runtime\Caching\MemoryCacheEntry.cs (1)
226
return !_usageEntryRef.
IsInvalid
;