1 instantiation of WeakReference
Microsoft.CodeAnalysis.CodeStyle (1)
ReferenceCountedDisposableCache.cs (1)
45
_cache[key] = new ReferenceCountedDisposable<Entry>.
WeakReference
(disposable);
4 references to WeakReference
Microsoft.CodeAnalysis.CodeStyle (4)
ReferenceCountedDisposable.cs (2)
138
/// <see cref="
WeakReference
.TryAddReference"/>.
312
/// Holds the weak reference used by instances of <see cref="
WeakReference
"/> to obtain a reference-counted
ReferenceCountedDisposableCache.cs (2)
19
private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.
WeakReference
> _cache = new();
29
if (_cache.TryGetValue(key, out
var
weakReference))