示例#1
0
 /// <summary>
 /// Converts the incoming value to a <see cref="bool"/> indicating whether or not the value is not null and not empty.
 /// </summary>
 /// <param name="value">The value to convert.</param>
 /// <returns>A <see cref="bool"/> indicating if the incoming value is not null and not empty.</returns>
 public override bool ConvertFrom(IEnumerable?value) => !ListIsNullOrEmptyConverter.ConvertInternal(value);
示例#2
0
 /// <summary>
 /// Converts the incoming value to a <see cref="bool"/> indicating whether or not the value is not null and not empty.
 /// </summary>
 /// <param name="value">The value to convert.</param>
 /// <param name="targetType">The type of the binding target property. This is not implemented.</param>
 /// <param name="parameter">Additional parameter for the converter to handle. This is not implemented.</param>
 /// <param name="culture">The culture to use in the converter. This is not implemented.</param>
 /// <returns>A <see cref="bool"/> indicating if the incoming value is not null and not empty.</returns>
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
 !ListIsNullOrEmptyConverter.ConvertInternal(value);