public override void Dispose() { Dispose(true); GC.SuppressFinalize(this); }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { #region Objects which are getting disposed if (_fieldControlHash != null) { _fieldControlHash = null; } if (_log != null) { _log = null; } if (_tLogic != null) { _tLogic = null; } if (_curTrans != null) { _curTrans=null; } if (_curUser != null) { _curUser=null; } if (_dynpop != null) { _dynpop = null; } //if (_environ != null) //{ // _environ = null; //} if (conGenGlobal != null) { conGenGlobal = null; } if (_CMSNotesLogic != null) { _CMSNotesLogic = null; } if (el != null) { el = null; } if (elog != null) { elog = null; } if (_mlogger != null) { _mlogger = null; } if (_mlog != null) { _mlog = null; } #endregion } disposed = true; } }
IDisposable
using
finally
try...catch...finally
Dispose
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)