StringBuilderPooledObjectPolicy Class

Definition

A policy for pooling StringBuilder instances.

public ref class StringBuilderPooledObjectPolicy : Microsoft::Extensions::ObjectPool::IPooledObjectPolicy<System::Text::StringBuilder ^>
public ref class StringBuilderPooledObjectPolicy : Microsoft::Extensions::ObjectPool::PooledObjectPolicy<System::Text::StringBuilder ^>
public class StringBuilderPooledObjectPolicy : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<System.Text.StringBuilder>
public class StringBuilderPooledObjectPolicy : Microsoft.Extensions.ObjectPool.PooledObjectPolicy<System.Text.StringBuilder>
type StringBuilderPooledObjectPolicy = class
    interface IPooledObjectPolicy<StringBuilder>
type StringBuilderPooledObjectPolicy = class
    inherit PooledObjectPolicy<StringBuilder>
Public Class StringBuilderPooledObjectPolicy
Implements IPooledObjectPolicy(Of StringBuilder)
Public Class StringBuilderPooledObjectPolicy
Inherits PooledObjectPolicy(Of StringBuilder)
Inheritance
StringBuilderPooledObjectPolicy
Inheritance
StringBuilderPooledObjectPolicy
Implements

Constructors

StringBuilderPooledObjectPolicy()

Properties

InitialCapacity

Gets or sets the initial capacity of pooled StringBuilder instances.

MaximumRetainedCapacity

Gets or sets the maximum value for Capacity that is allowed to be retained, when Return(StringBuilder) is invoked.

Methods

Create()

Creates a T.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Return(StringBuilder)

Runs some processing when an object is returned to the pool. Can be used to reset the state of an object and indicate if the object should be returned to the pool.

Return(T)

Runs some processing when an object is returned to the pool. Can be used to reset the state of an object and indicate if the object should be returned to the pool.

(Inherited from PooledObjectPolicy<T>)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to