Constructor CancelEventArgs
CancelEventArgs(ref readonly T, ref T, bool)
Initializes a new instance of the CancelEventArgs<T> class.
public CancelEventArgs(ref readonly T currentValue, ref T newValue, bool cancel = false)
Parameters
currentValueTThe current (old) value of the property.
newValueTThe value the property will be set to if the event is not cancelled.
cancelboolWhether the event should be canceled or not.
CancelEventArgs(T, T)
Initializes a new instance of the CancelEventArgs<T> class.
protected CancelEventArgs(T currentValue, T newValue)
Parameters
currentValueTThe current (old) value of the property.
newValueTThe value the property will be set to if the event is not cancelled.