Пример #1
0
        public bool Equals(HackyHashSet <T> other)
        {
            if (Object.ReferenceEquals(other, null))
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(set.Equals(other.set));
        }
Пример #2
0
 public bool SetEquals(HackyHashSet <T> other, IEqualityComparer <T> comparer)
 {
     return(set.ToHashSet(comparer).SetEquals(other.set));
 }
Пример #3
0
 public bool SetEquals(HackyHashSet <T> other)
 {
     return(set.SetEquals(other.set));
 }