ObjectPoolProvider 类

定义

ObjectPool<T> 实例的提供程序。A provider of ObjectPool<T> instances.

public ref class ObjectPoolProvider abstract
public abstract class ObjectPoolProvider
type ObjectPoolProvider = class
Public MustInherit Class ObjectPoolProvider
继承
ObjectPoolProvider
派生

构造函数

ObjectPoolProvider()

方法

Create<T>()

创建 ObjectPoolCreates an ObjectPool.

Create<T>(IPooledObjectPolicy<T>)

创建具有给定 IPooledObjectPolicy<T>ObjectPoolCreates an ObjectPool with the given IPooledObjectPolicy<T>.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

扩展方法

CreateStringBuilderPool(ObjectPoolProvider)
CreateStringBuilderPool(ObjectPoolProvider, Int32, Int32)

适用于