public void ExceptWith(CustomSet <T> other) { if (factory != other.factory) { throw new NotImplementedException(); } hashCode = 0; set.ExceptWith(other.set); }