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