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