public static StringBuilder Allocate() { return(SharedPools.Default <StringBuilder>().AllocateAndClear()); }
public static string ReturnAndFree(StringBuilder builder) { SharedPools.Default <StringBuilder>().ForgetTrackedObject(builder); return(builder.ToString()); }
public static void Free(StringBuilder builder) { SharedPools.Default <StringBuilder>().ClearAndFree(builder); }
public static List <T> Allocate() { return(SharedPools.Default <List <T> >().AllocateAndClear()); }
public static List <T> ReturnAndFree(List <T> list) { SharedPools.Default <List <T> >().ForgetTrackedObject(list); return(list); }
public static void Free(List <T> list) { SharedPools.Default <List <T> >().ClearAndFree(list); }