public override System.String ToString() { System.Text.StringBuilder stringContent = new System.Text.StringBuilder(32); stringContent.Append("AminoAcid("); stringContent.Append(this.GetHashCode()).Append(", "); if (nTerminus == null) { stringContent.Append("N: null, "); } else { stringContent.Append("N: ").Append(nTerminus.GetHashCode()).Append(", "); } if (cTerminus == null) { stringContent.Append("C: null, "); } else { stringContent.Append("C: ").Append(cTerminus.GetHashCode()).Append(", "); } stringContent.Append(base.ToString()); stringContent.Append(')'); return(stringContent.ToString()); }
private static bool AddAtomID(IAtom cdkAtom, CMLAtom cmlAtom) { if (!string.IsNullOrEmpty(cdkAtom.Id)) { cmlAtom.Id = cdkAtom.Id; } else { cmlAtom.Id = "a" + cdkAtom.GetHashCode().ToString(NumberFormatInfo.InvariantInfo); } return(true); }
public override int GetHashCode() { return(Atom.GetHashCode()); }
public override int GetHashCode() { return(Atom.GetHashCode() ^ Quantifier.GetHashCode()); }