Пример #1
0
        /// <summary>
        /// Disposes resources used by this class.
        /// </summary>
        /// <param name="disposing">
        /// Indicates whether this method is being called by the class's Dispose
        /// method (true) or by the garbage collector (false).
        /// </param>
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    // dispose-only, i.e. non-finalizable logic
                    _block.Dispose();
                }

                // new shared cleanup logic
                _disposed = true;
            }

            // Uncomment if the base type also implements IDisposable
//			base.Dispose( disposing );
        }