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