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