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
valueTConvertFromValue to convert.
convertAction<ValueConvertEventArgs<TConvertFrom, TConvertTo>>Conversion action.
resultTConvertToResult of the conversion.
Returns
- bool
True if value was converted using the conversion event; False otherwise.
Type Parameters
TConvertFromType of the value to convert from.
TConvertToType of the value to convert to.