예제 #1
0
 public static StringBuilder Allocate()
 {
     return(SharedPools.Default <StringBuilder>().AllocateAndClear());
 }
예제 #2
0
 public static string ReturnAndFree(StringBuilder builder)
 {
     SharedPools.Default <StringBuilder>().ForgetTrackedObject(builder);
     return(builder.ToString());
 }
예제 #3
0
 public static void Free(StringBuilder builder)
 {
     SharedPools.Default <StringBuilder>().ClearAndFree(builder);
 }
예제 #4
0
 public static List <T> Allocate()
 {
     return(SharedPools.Default <List <T> >().AllocateAndClear());
 }
예제 #5
0
 public static List <T> ReturnAndFree(List <T> list)
 {
     SharedPools.Default <List <T> >().ForgetTrackedObject(list);
     return(list);
 }
예제 #6
0
 public static void Free(List <T> list)
 {
     SharedPools.Default <List <T> >().ClearAndFree(list);
 }