/// <summary> /// /// </summary> /// <param name="obj"></param> public Ref(T obj) { if (obj == null) { throw new NullReferenceException(); } v = new RefCounter <T>(obj); }
/// <summary> /// Releases this reference to the object. /// </summary> public void Dispose() { v.Dispose(); v = null; }
/// <summary> /// /// </summary> /// <param name="copyfrom"></param> public Ref(Ref <T> copyfrom) { v = copyfrom.v; v.AddRef(); }