1 instantiation of PooledStringBuilder
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
83pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
27 references to PooledStringBuilder
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (27)
Debugger\Engine\DkmClrValue.cs (2)
247var pooled = PooledStringBuilder.GetInstance();
ResultProviderTestBase.cs (6)
383var pooledBuilder = PooledStringBuilder.GetInstance(); 419var pooledBuilder = PooledStringBuilder.GetInstance(); 446var pooledBuilder = 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(); 80public static ObjectPool<PooledStringBuilder> CreatePool(int size = 32) 82ObjectPool<PooledStringBuilder>? pool = null; 83pool = new ObjectPool<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size); 87public static PooledStringBuilder GetInstance() 89var builder = s_poolInstance.Allocate(); 94public static implicit operator StringBuilder(PooledStringBuilder obj)
src\ExpressionEvaluator\Core\Source\ExpressionCompiler\CustomTypeInfo.cs (2)
163var pooledBuilder = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.cs (2)
113var pooledBuilder = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.TypeNames.cs (4)
40var pooled = PooledStringBuilder.GetInstance(); 286var pooled = PooledStringBuilder.GetInstance();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ValueHelpers.cs (2)
57var pooled = PooledStringBuilder.GetInstance();