public bool Equals(INucleotideIdentifier other) { if (other == null) return false; else if (other is NucleotideIdentifier) return this.Identifier == ((NucleotideIdentifier)other).Identifier; else return false; }
/// <summary> /// /// </summary> /// <param name="identifier">The display text of the INucleotide such as /// "A" "G" "U" "C" "4" "237", etc.</param> public Nucleotide(INucleotideIdentifier identifier) : this() { this.Identifier = identifier; }
public int CompareTo(INucleotideIdentifier other) { return this.Identifier.CompareTo(other.ToString()); }