コード例 #1
0
 private int CompareNucleotide(Gene.Nucleotide first, Gene.Nucleotide second)
 {
     if (first < second)
     {
         return(-1);
     }
     if (first > second)
     {
         return(1);
     }
     return(0);
 }
コード例 #2
0
 public Codon(string gene)
 {
     First  = Enum.Parse <Gene.Nucleotide>(gene.Substring(0, 1));
     Second = Enum.Parse <Gene.Nucleotide>(gene.Substring(1, 2));
     Third  = Enum.Parse <Gene.Nucleotide>(gene.Substring(2, 3));
 }