Поделиться через


ObjectPool.Create<T>(IPooledObjectPolicy<T>) Метод

Определение

public static Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> (Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<T> policy = default) where T : class, new();
public static Microsoft.Extensions.ObjectPool.ObjectPool<T> Create<T> (Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<T>? policy = default) where T : class, new();
static member Create : Microsoft.Extensions.ObjectPool.IPooledObjectPolicy<'T (requires 'T : null and 'T : (new : unit -> 'T))> -> Microsoft.Extensions.ObjectPool.ObjectPool<'T (requires 'T : null and 'T : (new : unit -> 'T))> (requires 'T : null and 'T : (new : unit -> 'T))
Public Shared Function Create(Of T As {Class, New}) (Optional policy As IPooledObjectPolicy(Of T) = Nothing) As ObjectPool(Of T)

Параметры типа

T

Параметры

Возвращаемое значение

Применяется к