15 references to IsInvalid
System.Runtime.Caching (15)
System\Runtime\Caching\CacheUsage.cs (14)
151Debug.Assert(_lastRefHead.IsInvalid, "_lastRefHead.IsInvalid"); 152Debug.Assert(_lastRefTail.IsInvalid, "_lastRefTail.IsInvalid"); 153Debug.Assert(_addRef2Head.IsInvalid, "_addRef2Head.IsInvalid"); 318Debug.Assert(((entries)[0]._ref1._next).IsInvalid, "FreeEntryHead(entries).IsInvalid"); 531Debug.Assert(cacheEntry.UsageEntryRef.IsInvalid, "cacheEntry.UsageEntryRef.IsInvalid"); 541if (_lastRefHead.IsInvalid) 553if (_addRef2Head.IsInvalid) 612if (entryRef.IsInvalid) 639if (entryRef.IsInvalid) 707for (prev = _lastRefTail; _cEntriesInFlush < maxFlush && !prev.IsInvalid; prev = prevNext) 761Debug.Assert(!inFlushHead.IsInvalid, "!inFlushHead.IsInvalid"); 766while (!current.IsInvalid) 775Debug.Assert(cacheEntry.UsageEntryRef.IsInvalid, "cacheEntry.UsageEntryRef.IsInvalid"); 788while (!current.IsInvalid)
System\Runtime\Caching\MemoryCacheEntry.cs (1)
226return !_usageEntryRef.IsInvalid;