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(); } } }
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(); } } }
protected virtual void Dispose(bool disposing) { if (disposing && !_disposed) { _disposed = true; _views?.Dispose(); _attachments?.Dispose(); _bodyView?.Dispose(); } }