예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Molecule.GetHashCode();
         hashCode = (hashCode * 397) ^ MonoMassOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ AverageMassOffset.GetHashCode();
         return(hashCode);
     }
 }
예제 #2
0
 protected bool Equals(MoleculeMassOffset other)
 {
     return(Molecule.Equals(other.Molecule) && MonoMassOffset.Equals(other.MonoMassOffset) && AverageMassOffset.Equals(other.AverageMassOffset));
 }