csharp
public readonly struct PooledObject<T> where T : classA rented instance that returns itself to its pool when disposed. Obtained from RentScoped.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (1)
public T ValueThe rented instance.
Methods (6)
public void Dispose()Returns the instance to its pool.
public bool Equals(PooledObject<T> other)Whether two scopes hold the same instance from the same pool.
public override bool Equals(object? obj)Indicates whether this instance and a specified object are equal.
public override int GetHashCode()Returns the hash code for this instance.
public static bool operator ==(PooledObject<T> left, PooledObject<T> right)Whether two scopes hold the same instance from the same pool.
public static bool operator !=(PooledObject<T> left, PooledObject<T> right)Whether two scopes hold different instances.
Used by (2)
- ObjectPoolVixen.Core
- PoolingTestsVixen.Core.Tests