You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/MemoryPools/PooledObjectPolicy.cs

18 lines
515 B

/*https://github.com/dotnet/aspnetcore/blob/main/src/ObjectPool*/
namespace MemoryPools
{
/// <summary>
/// A base type for <see cref="IPooledObjectPolicy{T}"/>.
/// </summary>
/// <typeparam name="T">The type of object which is being pooled.</typeparam>
public abstract class PooledObjectPolicy<T> : IPooledObjectPolicy<T> where T : notnull
{
/// <inheritdoc />
public abstract T Create();
/// <inheritdoc />
public abstract bool Return(T obj);
}
}

Powered by TurnKey Linux.