1 write to _cache
PresentationFramework (1)
MS\Internal\Documents\PageCache.cs (1)
39_cache = new List<PageCacheEntry>(_defaultCacheSize);
33 references to _cache
PresentationFramework (33)
MS\Internal\Documents\PageCache.cs (33)
164return _cache.Count; 257if (pageNumber >= 0 && pageNumber < _cache.Count) 259Size pageSize = _cache[pageNumber].PageSize; 292if (pageNumber >= 0 && pageNumber < _cache.Count) 294return _cache[pageNumber].Dirty; 376if (args.Start >= _cache.Count) 389if (args.Start + args.Count < _cache.Count) 401change = DirtyRange(args.Start, _cache.Count - args.Start); 407change = AddRange(_cache.Count, args.Count - (_cache.Count - args.Start) + 1); 420if (pageCount < _cache.Count) 422change = new PageCacheChange(pageCount, _cache.Count - pageCount, PageCacheChangeType.Remove); 426_cache.RemoveRange(pageCount, _cache.Count - pageCount); 524if (args.Start + args.Count >= _cache.Count || 527adjustedCount = _cache.Count - args.Start; 624if (args.PageNumber > _cache.Count - 1) 710for (int i = 0; i < _cache.Count; i++) 712if (_cache[i].Dirty || !dirtyOnly) 762if (start >= _cache.Count) 764count += (start - _cache.Count); 765start = _cache.Count; 775_cache.Add(newEntry); 789ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, _cache.Count); 795if (newEntry.PageSize != _cache[index].PageSize || 796newEntry.Dirty != _cache[index].Dirty) 799_cache[index] = newEntry; 816ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(start, _cache.Count); 818ArgumentOutOfRangeException.ThrowIfGreaterThan(count, _cache.Count - start); 832_cache[i] = newEntry; 843if (_cache.Count > 0) 848PageCacheChange change = new PageCacheChange(0, _cache.Count, PageCacheChangeType.Remove); 852_cache.Clear();