コード例 #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
         picture = null;
         pagination = null;
     }
     base.Dispose(disposing);
 }
コード例 #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                db.Dispose();
                //Remove other objects also;
                picture = null;
                pagination = null;

            }
            base.Dispose(disposing);
        }