2 instantiations of ObjectPool
System.Reflection.Metadata (2)
System\Reflection\Internal\Utilities\PooledStringBuilder.cs (1)
60pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), 32);
System\Reflection\Metadata\PooledBlobBuilder.cs (1)
13private static readonly ObjectPool<PooledBlobBuilder> s_chunkPool = new ObjectPool<PooledBlobBuilder>(() => new PooledBlobBuilder(ChunkSize), PoolSize);
6 references to ObjectPool
System.Reflection.Metadata (6)
System\Reflection\Internal\Utilities\PooledStringBuilder.cs (5)
20private readonly ObjectPool<PooledStringBuilder> _pool; 22private PooledStringBuilder(ObjectPool<PooledStringBuilder> pool) 54private static readonly ObjectPool<PooledStringBuilder> s_poolInstance = CreatePool(); 57public static ObjectPool<PooledStringBuilder> CreatePool() 59ObjectPool<PooledStringBuilder>? pool = null;
System\Reflection\Metadata\PooledBlobBuilder.cs (1)
13private static readonly ObjectPool<PooledBlobBuilder> s_chunkPool = new ObjectPool<PooledBlobBuilder>(() => new PooledBlobBuilder(ChunkSize), PoolSize);