Exemple #1
0
 public void Dispose()
 {
     if (_pool != null)
     {
         _pool.Back(Item);
         _pool = null;
     }
 }
Exemple #2
0
 public FromPool(PayloadPool <T> pool) : this(pool.Rent(), pool)
 {
 }
Exemple #3
0
 public FromPool(T item, PayloadPool <T> pool)
 {
     _pool = pool;
     Item  = item;
 }