Method ConvertWithAction
ConvertWithAction<TConvertFrom, TConvertTo>(TConvertFrom?, Action<ValueConvertEventArgs<TConvertFrom?, TConvertTo?>>?, out TConvertTo?)
Calls the specified conversion action.
public static bool ConvertWithAction<TConvertFrom, TConvertTo>(TConvertFrom? value, Action<ValueConvertEventArgs<TConvertFrom?, TConvertTo?>>? convert, out TConvertTo? result)
Parameters
value
TConvertFromValue to convert.
convert
Action<ValueConvertEventArgs<TConvertFrom, TConvertTo>>Conversion action.
result
TConvertToResult of the conversion.
Returns
- bool
True if value was converted using the conversion event; False otherwise.
Type Parameters
TConvertFrom
Type of the value to convert from.
TConvertTo
Type of the value to convert to.