示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ExplicitMod.GetHashCode();
         hashCode = (hashCode * 397) ^ MonoisotopicMass.GetHashCode();
         hashCode = (hashCode * 397) ^ AverageMass.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }