Example #1
0
 /// <inheritdoc/>
 public override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(targetType.IsValueType && !targetType.IsNullable() ? ConverterHelper.ChangeType(value, targetType, culture) : ConverterHelper.TryChangeType(value, targetType, culture));
 }