Exemple #1
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         //var hashCode = (this.Name != null ? this.Name.GetHashCode() : 0);
         var hashCode = Charge;
         hashCode = (hashCode * 397) ^ (OffsetComposition != null ? OffsetComposition.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsPrefixIon.GetHashCode();
         return(hashCode);
     }
 }
Exemple #2
0
 public override int GetHashCode()
 {
     return(IsPrefixIon.GetHashCode() * OffsetComposition.GetHashCode() * Charge.GetHashCode());
 }