namespace Terminal.Gui.App; /// /// Provides data for events that notify of a completed property change in the Cancellable Work Pattern (CWP). /// /// /// /// Used in post-change events raised by to notify /// subscribers of a property change, such as in when the /// property is updated or when the scheme name changes. /// /// /// The type of the property value, which may be a nullable reference type (e.g., ?). /// /// public class ValueChangedEventArgs { /// /// Gets the value before the change, which may be null for nullable types. /// public T OldValue { get; } /// /// Gets the value after the change, which may be null for nullable types. /// public T NewValue { get; } /// /// Initializes a new instance of the class. /// /// The value before the change, which may be null for nullable types. /// The value after the change, which may be null for nullable types. public ValueChangedEventArgs (T oldValue, T newValue) { OldValue = oldValue; NewValue = newValue; } }