Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (db != null)
         {
             db.Dispose();
             db = null;
         }
     }
 }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
            }

            db.Dispose();
            db       = null;
            disposed = true;
        }
Пример #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (Disposed)
            {
                return;
            }

            if (disposing)
            {
            }

            db.Dispose();
            db              = null;
            boxData         = null;
            TimeZoneConvert = null;
            Session         = null;
            Disposed        = true;
        }