4 references to Entry
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (4)
19
private readonly Dictionary<TKey, ReferenceCountedDisposable<
Entry
>.WeakReference> _cache = [];
26
ReferenceCountedDisposable<
Entry
>? disposable = null;
44
disposable = new ReferenceCountedDisposable<
Entry
>(new Entry(this, key, valueCreator(key, arg)));
45
_cache[key] = new ReferenceCountedDisposable<
Entry
>.WeakReference(disposable);