private void StopTimer() { ValueChangedTimer?.Dispose(); ValueChangedTimer = null; Frequency = int.MaxValue; }
/// <inheritdoc /> public virtual void Dispose() { lock (ValueChangedHandlers) { ValueChangedHandlers.Clear(); ValueChangedTimer?.Dispose(); } }