public void Dispose() { if (_function != null) { _function.ChangedEvent -= FunctionChangedHandler; } if (_defaultFunc != null) { _defaultFunc.ChangedEvent -= DefaultFunctionChangedHandler; } Utilities.DisposeObj(ref _function); Utilities.RemoveAllEventHandlerFrom(this); }
public virtual void Dispose() { Utilities.RemoveAllEventHandlerFrom(this); }