ObjectPool<T>.

ObjectPool<T>.Disposable Struct

Summary

An System.IDisposable to allow pooled objects to be acquired and released within using statements instead of needing to manually release everything.
Assembly
Animancer.dll
Namespace
Animancer
Interfaces
  • IDisposable
Base Types
  • ValueType
graph BT Type-->Base0["ValueType"] Type-.->Interface0["IDisposable"] Type["ObjectPool<T>.Disposable"] class Type type-node

Syntax

public readonly struct ObjectPool<T>.Disposable : ValueType, IDisposable

Constructors

Name Summary
Disposable(ObjectPool<T>, T) Creates a new Animancer.ObjectPool`1.Disposable and calls Animancer.ObjectPool`1.Acquire to set the Animancer.ObjectPool`1.Disposable.Item and `item`.

Fields

Name Constant Value Summary
Item
The object acquired from the Animancer.ObjectPool`1.Disposable.Pool.
Pool
The Animancer.ObjectPool`1 which the Animancer.ObjectPool`1.Disposable.Item is acquired from.

Methods

Name Value Summary
Dispose() void
Animancer.ObjectPool`1.Release(`0) the Animancer.ObjectPool`1.Disposable.Item.