Пример #1
0
        public override int GetHashCode()
        {
            //Get hash code for the Name field if it is not null.
            int hashProductName = Filtertype.GetHashCode();

            //Get hash code for the Code field.
            int hashProductCode = FilterValues.GetHashCode();

            //Calculate the hash code for the product.
            return(hashProductName ^ hashProductCode);
        }
Пример #2
0
 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));
 }