You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
428 B
C#

using System.Collections.Generic;
namespace FluidHTN.Factory
{
public interface IFactory
{
T[] CreateArray<T>(int length);
bool FreeArray<T>(ref T[] array);
Queue<T> CreateQueue<T>();
bool FreeQueue<T>(ref Queue<T> queue);
List<T> CreateList<T>();
bool FreeList<T>(ref List<T> list);
T Create<T>() where T : new();
bool Free<T>(ref T obj);
}
}