public bool Equals(Gene other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.Sha256Hash == this.Sha256Hash); }
public void Append(Gene gene) { EvolutionHistory = EvolutionHistory.Add(gene); }
public bool Contains(Gene gene) { return(_genes.Contains(gene)); }
public bool Contains(Gene gene) => _geneSet.Contains(gene);
public EvolutionHistory Add(Gene gene) { return(new EvolutionHistory( _genes.Add(gene), _geneSet.Add(gene))); }