public static ThreadLocalObjectList NewInstance(int minCapacity) { ThreadLocalObjectList ret = Pool.Take(); if (ret.Capacity < minCapacity) { ret.Capacity = minCapacity; } return(ret); }
public static ThreadLocalList <T> NewInstance() => Pool.Take();
public static ThreadLocalObjectList NewInstance() => Pool.Take(); //NewInstance(DefaultInitialCapacity);
public static ThreadLocalObjectList Take() { return(Pool.Take()); }
public static ThreadLocalObjectList Take() => Pool.Take();