AbstractComparer.cs 328 B

12345678910111213
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. namespace InABox.WPF
  4. {
  5. public abstract class AbstractComparer<T> : AbstractMultiConverter<T,bool>
  6. {
  7. protected override bool Convert(IEnumerable<T>? value, object parameter = null)
  8. {
  9. return value?.Distinct().Count() == 1;
  10. }
  11. }
  12. }