Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(Atom.GetHashCode());
 }
Esempio n. 4
0
 public override int GetHashCode()
 {
     return(Atom.GetHashCode() ^ Quantifier.GetHashCode());
 }