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)
19private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache = new(); 29if (_cache.TryGetValue(key, out var weakReference))