Пример #1
0
 public bool Equals(ObservableGroupingView <TKey, TElement> x, ObservableGroupingView <TKey, TElement> y)
 {
     if (x != null && y != null)
     {
         return(keyComparer.Equals(x.Key, y.Key));
     }
     if (x == null && y == null)
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
 public int GetHashCode(ObservableGroupingView <TKey, TElement> obj)
 {
     return(obj == null ? 0 : keyComparer.GetHashCode(obj.Key));
 }