Exemplo n.º 1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)_type;
         hashCode = (hashCode * 397) ^ _electricCharge.GetHashCode();
         hashCode = (hashCode * 397) ^ _spin.GetHashCode();
         hashCode = (hashCode * 397) ^ _isospin.GetHashCode();
         hashCode = (hashCode * 397) ^ _naturalMass.GetHashCode();
         hashCode = (hashCode * 397) ^ _mass.GetHashCode();
         hashCode = (hashCode * 397) ^ _interactionFlags.GetHashCode();
         hashCode = (hashCode * 397) ^ _hypercharge.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)_lifetime;
         return(hashCode);
     }
 }