1using System.Globalization;
8 [AcceptEmptyServiceProvider]
12 public object?
Convert(
object? value, Type targetType,
object? parameter, CultureInfo culture)
14 if (value is
string s &&
string.IsNullOrEmpty(s))
21 public object?
ConvertBack(
object? value, Type targetType,
object? parameter, CultureInfo culture)
23 return value ??
string.Empty;
The Localized String corresponding to "N/A" if empty.
object ProvideValue(IServiceProvider serviceProvider)
object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)