com.alicizax.unity.ui.exten.../Runtime/RecyclerView/ObjectPool/IObjectPool.cs

19 lines
308 B
C#
Raw Normal View History

2025-12-26 14:22:46 +08:00
namespace AlicizaX.UI
2025-05-28 19:37:38 +08:00
{
using System;
2025-12-26 14:22:46 +08:00
public interface IObjectPool : IDisposable
2025-05-28 19:37:38 +08:00
{
object Allocate();
void Free(object obj);
}
2025-12-26 14:22:46 +08:00
public interface IObjectPool<T> : IObjectPool, IDisposable where T : class
2025-05-28 19:37:38 +08:00
{
new T Allocate();
void Free(T obj);
}
}