예제 #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);
     }
 }
예제 #4
0
 public override int GetHashCode()
 {
     return(MonoisotopicMass.GetHashCode());
 }