2 types derived from CacheEntry
System.Windows.Forms.Primitives (2)
System\Windows\Forms\GdiPlus\PenCache.cs (1)
15private sealed class PenCacheEntry : CacheEntry
System\Windows\Forms\GdiPlus\SolidBrushCache.cs (1)
15private sealed class SolidBrushCacheEntry : CacheEntry
19 references to CacheEntry
System.Windows.Forms.Primitives (18)
System\Windows\Forms\GdiPlus\PenCache.cs (2)
12protected override CacheEntry CreateEntry(Color key, bool cached) => new PenCacheEntry(key, cached); 13protected override bool IsMatch(Color key, CacheEntry entry) => key == entry.Data;
System\Windows\Forms\GdiPlus\SolidBrushCache.cs (2)
12protected override CacheEntry CreateEntry(Color key, bool cached) => new SolidBrushCacheEntry(key, cached); 13protected override bool IsMatch(Color key, CacheEntry data) => key == data.Data;
System\Windows\Forms\RefCountedCache.cs (10)
24private readonly SinglyLinkedList<CacheEntry> _list = new(); 48/// Override this to create a new <see cref="CacheEntry"/> for the given <paramref name="key"/>. 54protected abstract CacheEntry CreateEntry(TKey key, bool cached); 59protected abstract bool IsMatch(TKey key, CacheEntry entry); 69public virtual CacheEntry GetEntry(TKey key) 74if (!Find(key, out CacheEntry entry)) 82bool Find(TKey key, out CacheEntry entry) 92CacheEntry currentEntry = node.Value; 115CacheEntry Add(TKey key) 117CacheEntry entry;
System\Windows\Forms\RefCountedCache.Scope.cs (4)
9/// Disposable struct that manages reference counting of <see cref="CacheEntry"/>. 18private CacheEntry Entry { get; } 38public Scope(CacheEntry entry) 70CacheEntry entry = scope.Entry;
System.Windows.Forms.Tests (1)
System\Windows\Forms\FontCacheTests.cs (1)
28using var hfont = cache.GetEntry(