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