9 references to new
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
91=> new(pool, p => p.Allocate(), (p, o) => p.Free(o));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (8)
43return new PooledObject<StringBuilder>( 51return new PooledObject<Stack<TItem>>( 59return new PooledObject<Queue<TItem>>( 67return new PooledObject<HashSet<TItem>>( 75return new PooledObject<ConcurrentSet<TItem>>( 84return new PooledObject<Dictionary<TKey, TValue>>( 92return new PooledObject<List<TItem>>( 100return new PooledObject<SegmentedList<TItem>>(