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
currentValue
TThe current (old) value of the property.
newValue
TThe value the property will be set to if the event is not cancelled.
cancel
boolWhether 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
currentValue
TThe current (old) value of the property.
newValue
TThe value the property will be set to if the event is not cancelled.