Beispiel #1
0
 public IRef <T> Clone()
 {
     lock (_lock)
     {
         if (_item != null)
         {
             var newRef = new Ref <T>(_item, _counter);
             _counter.AddRef();
             return(newRef);
         }
         throw new ObjectDisposedException("Ref<" + typeof(T) + ">");
     }
 }