public override int GetHashCode() { unchecked { var hashCode = ExplicitMod.GetHashCode(); hashCode = (hashCode * 397) ^ MonoisotopicMass.GetHashCode(); hashCode = (hashCode * 397) ^ AverageMass.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = (Formula != null ? Formula.GetHashCode() : 0); result = (result * 397) ^ MonoisotopicMass.GetHashCode(); result = (result * 397) ^ AverageMass.GetHashCode(); result = (result * 397) ^ Inclusion.GetHashCode(); return(result); } }
public override int GetHashCode() { unchecked { int hashCode = (Formula != null ? Formula.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ MonoisotopicMass.GetHashCode(); hashCode = (hashCode * 397) ^ AverageMass.GetHashCode(); return(hashCode); } }