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