1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
15 references to PooledStringBuilder
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (15)
MSBuild\ProjectFile\Extensions.cs (2)
93var pooledBuilder = PooledStringBuilder.GetInstance();
src\Compilers\Core\Portable\CaseInsensitiveComparison.cs (2)
378var pooledStrbuilder = PooledStringBuilder.GetInstance();
src\Compilers\Core\Portable\InternalUtilities\JsonWriter.cs (2)
262PooledStringBuilder? pooledBuilder = null; 281pooledBuilder = PooledStringBuilder.GetInstance();
src\Dependencies\PooledObjects\PooledStringBuilder.cs (9)
21private readonly ObjectPool<PooledStringBuilder> _pool; 23private PooledStringBuilder(ObjectPool<PooledStringBuilder> pool) 73private static readonly ObjectPool<PooledStringBuilder> s_poolInstance = CreatePool(); 81public static ObjectPool<PooledStringBuilder> CreatePool(int size = 32) 83ObjectPool<PooledStringBuilder>? pool = null; 84pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size); 88public static PooledStringBuilder GetInstance() 90var builder = s_poolInstance.Allocate(); 95public static implicit operator StringBuilder(PooledStringBuilder obj)