public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var res = GetFormattedValue(FormatString, value, System.Globalization.CultureInfo.CurrentUICulture, OutStringCaseFormat, AllowSimpleFormatString); if (res is string && SplitPascalCase) { return(SplitStringHelper.SplitPascalCaseString((string)res)); } return(res); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return(value == null ? null : SplitStringHelper.SplitPascalCaseString(value.ToString())); }