public bool Equals(FilterSelectionData other) { if (Object.ReferenceEquals(other, null)) { return(false); } if (Object.ReferenceEquals(this, other)) { return(true); } return(Filtertype.Equals(other.Filtertype) && FilterValues.Equals(other.FilterValues)); }