1 instantiation of Box
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
102var box = new Box(key, value);
8 references to Box
Microsoft.CodeAnalysis.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (8)
55private readonly ConditionalWeakTable<TKey, Box> _table = new(); 56private ImmutableList<WeakReference<Box>> _items = []; 62if (_table.TryGetValue(key, out var box)) 102var box = new Box(key, value); 104_items = _items.Add(new WeakReference<Box>(box)); 109if (!_table.TryGetValue(key, out var box)) 115_items = _items.RemoveAll(item => !item.TryGetTarget(out var target) || ReferenceEquals(target, box)); 123if (item.TryGetTarget(out var box))