Beispiel #1
0
 public static void To(T target, Pooling <T> customPool = default)
 {
     //"pool type error".Log((target != default) && (typeof(T).FullName != target.GetType().FullName), target.GetType().FullName);
     CheckPoolNull(customPool);
     instance.ToPool(target);
 }
Beispiel #2
0
 public static Pooling <T> InitByCustom(Pooling <T> customPool, Func <T> func)
 {
     CheckPoolNull(customPool, func);
     return(instance);
 }
Beispiel #3
0
 public static T From(Pooling <T> customPool = default)
 {
     CheckPoolNull(customPool);
     return(instance.FromPool());
 }
Beispiel #4
0
 public static void To(T target, Pooling <T> customPool = null)
 {
     TesterBaseApp.Instance.LogWhenPoolingItemDoNotMatch(ref target);
     CheckPoolNull(customPool);
     instance.ToPool(target);
 }