Пример #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);
 }
Пример #2
0
 public static Pooling <T> InitByCustom(Pooling <T> customPool, Func <T> func)
 {
     CheckPoolNull(customPool, func);
     return(instance);
 }
Пример #3
0
 public static T From(Pooling <T> customPool = default)
 {
     CheckPoolNull(customPool);
     return(instance.FromPool());
 }
Пример #4
0
 public static void To(T target, Pooling <T> customPool = null)
 {
     TesterBaseApp.Instance.LogWhenPoolingItemDoNotMatch(ref target);
     CheckPoolNull(customPool);
     instance.ToPool(target);
 }