Skip to content

クラス ObjectPool<T> ​

Namespace: GameCanvas

csharp
public sealed class ObjectPool<T> where T : class, new()

コンストラクター ​

ObjectPool(int, int) ​

csharp
public ObjectPool(int capacity = 8, int initialSize = 0)

メソッド ​

Get() ​

csharp
public T? Get()

GetOrCreate() ​

csharp
public T GetOrCreate()

ReleaseAll() ​

csharp
public void ReleaseAll()

Released under the MIT License.