1using System.Globalization;
11 public object?
Convert(
object? value, Type targetType,
object? parameter, CultureInfo culture)
13 if (value is
string s)
14 return !
string.IsNullOrEmpty(s);
15 else if (value is
bool b)
18 return value is not
null;
22 public object?
ConvertBack(
object? value, Type targetType,
object? parameter, CultureInfo culture)
24 return value?.ToString() ??
string.Empty;
Is true if a property is non-empty.
object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
object ProvideValue(IServiceProvider serviceProvider)