using System.Linq;
namespace Avalonia.Data.Converters
{
///
/// Provides a set of useful s for working with bool values.
///
public static class BoolConverters
{
///
/// A multi-value converter that returns true if all inputs are true.
///
public static readonly IMultiValueConverter And =
new FuncMultiValueConverter(x => x.All(y => y));
///
/// A multi-value converter that returns true if any of the inputs is true.
///
public static readonly IMultiValueConverter Or =
new FuncMultiValueConverter(x => x.Any(y => y));
}
}