コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        public Ref(T obj)
        {
            if (obj == null)
            {
                throw new NullReferenceException();
            }

            v = new RefCounter <T>(obj);
        }
コード例 #2
0
 /// <summary>
 /// Releases this reference to the object.
 /// </summary>
 public void Dispose()
 {
     v.Dispose();
     v = null;
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="copyfrom"></param>
 public Ref(Ref <T> copyfrom)
 {
     v = copyfrom.v;
     v.AddRef();
 }