Example #1
0
        public override int GetHashCode()
        {
            var hashCode = Int32.MaxValue;

            hashCode = hashCode * Int32.MinValue + base.GetHashCode();
            hashCode = hashCode * Int32.MinValue + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * Int32.MinValue + Dose.GetHashCode();
            hashCode = hashCode * Int32.MinValue + EqualityComparer <string> .Default.GetHashCode(Unity);

            hashCode = hashCode * Int32.MinValue + NeedPrescription.GetHashCode();
            hashCode = hashCode * Int32.MinValue + EqualityComparer <string> .Default.GetHashCode(PharmaceuticalIndustry);

            return(hashCode);
        }