6 instantiations of PooledDisposer
Microsoft.CodeAnalysis.PooledObjects.Package (6)
ArrayBuilder.cs (3)
947return new PooledDisposer<ArrayBuilder<T>>(instance); 953return new PooledDisposer<ArrayBuilder<T>>(instance); 961return new PooledDisposer<ArrayBuilder<T>>(instance, discardLargeInstances);
PooledDictionary.cs (1)
66return new PooledDisposer<PooledDictionary<K, V>>(instance);
PooledHashSet.cs (1)
55return new PooledDisposer<PooledHashSet<T>>(instance);
PooledStringBuilder.cs (1)
116return new PooledDisposer<PooledStringBuilder>(pooledInstance, discardLargeInstances);
8 references to PooledDisposer
Microsoft.CodeAnalysis.PooledObjects.Package (8)
ArrayBuilder.cs (4)
941public static PooledDisposer<ArrayBuilder<T>> GetInstance(out ArrayBuilder<T> instance) 944public static PooledDisposer<ArrayBuilder<T>> GetInstance(int capacity, out ArrayBuilder<T> instance) 950public static PooledDisposer<ArrayBuilder<T>> GetInstance(int capacity, T fillWithValue, out ArrayBuilder<T> instance) 956public static PooledDisposer<ArrayBuilder<T>> GetInstance(bool discardLargeInstances, out ArrayBuilder<T> instance)
PooledDictionary.cs (1)
63public static PooledDisposer<PooledDictionary<K, V>> GetInstance(out PooledDictionary<K, V> instance)
PooledHashSet.cs (1)
52public static PooledDisposer<PooledHashSet<T>> GetInstance(out PooledHashSet<T> instance)
PooledStringBuilder.cs (2)
107public static PooledDisposer<PooledStringBuilder> GetInstance(out StringBuilder instance) 110public static PooledDisposer<PooledStringBuilder> GetInstance(bool discardLargeInstances, out StringBuilder instance)