Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing && !_disposed)
            {
                _disposed = true;

                _views?.Dispose();
                _attachments?.Dispose();
                _bodyView?.Dispose();
            }
        }
Beispiel #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing && !_disposed)
            {
                _disposed = true;

                if (_views != null)
                {
                    _views.Dispose();
                }
                if (_attachments != null)
                {
                    _attachments.Dispose();
                }
                if (_bodyView != null)
                {
                    _bodyView.Dispose();
                }
            }
        }
Beispiel #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing && !disposed)
            {
                disposed = true;

                if (views != null)
                {
                    views.Dispose();
                }
                if (attachments != null)
                {
                    attachments.Dispose();
                }
                if (bodyView != null)
                {
                    bodyView.Dispose();
                }
            }
        }