Exemple #1
0
 public ReturnHandle(ItemCollection handle)
 {
     Handle = handle;
 }
Exemple #2
0
 public void Dispose()
 {
     Pool.Return(Handle);
     Handle = null;
 }
Exemple #3
0
 public static ReturnHandle Borrow(out ItemCollection collection)
 {
     collection = Pool.Get();
     return(new ReturnHandle(collection));
 }