Share via


ObjectPoolProviderExtensions.CreateStringBuilderPool Method

Definition

Overloads

CreateStringBuilderPool(ObjectPoolProvider)

Creates an ObjectPool<T> that pools StringBuilder instances.

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

Creates an ObjectPool<T> that pools StringBuilder instances.

CreateStringBuilderPool(ObjectPoolProvider)

Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs

Creates an ObjectPool<T> that pools StringBuilder instances.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::ObjectPool::ObjectPool<System::Text::StringBuilder ^> ^ CreateStringBuilderPool(Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ provider);
public static Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder> CreateStringBuilderPool (this Microsoft.Extensions.ObjectPool.ObjectPoolProvider provider);
static member CreateStringBuilderPool : Microsoft.Extensions.ObjectPool.ObjectPoolProvider -> Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder>
<Extension()>
Public Function CreateStringBuilderPool (provider As ObjectPoolProvider) As ObjectPool(Of StringBuilder)

Parameters

Returns

The ObjectPool<T>.

Applies to

CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs
Source:
ObjectPoolProviderExtensions.cs

Creates an ObjectPool<T> that pools StringBuilder instances.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::ObjectPool::ObjectPool<System::Text::StringBuilder ^> ^ CreateStringBuilderPool(Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ provider, int initialCapacity, int maximumRetainedCapacity);
public static Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder> CreateStringBuilderPool (this Microsoft.Extensions.ObjectPool.ObjectPoolProvider provider, int initialCapacity, int maximumRetainedCapacity);
static member CreateStringBuilderPool : Microsoft.Extensions.ObjectPool.ObjectPoolProvider * int * int -> Microsoft.Extensions.ObjectPool.ObjectPool<System.Text.StringBuilder>
<Extension()>
Public Function CreateStringBuilderPool (provider As ObjectPoolProvider, initialCapacity As Integer, maximumRetainedCapacity As Integer) As ObjectPool(Of StringBuilder)

Parameters

initialCapacity
Int32

The initial capacity to initialize StringBuilder instances with.

maximumRetainedCapacity
Int32

The maximum value for Capacity that is allowed to be retained, when an instance is returned.

Returns

The ObjectPool<T>.

Applies to