private void extract_alphabet_IDs(IAlphabet a) { int index = 0; var enumerator = a.GetEnumerator(); while (enumerator.MoveNext()) { int value = enumerator.Current; switch (index) { case 0: this.A = value; break; case 1: this.C = value; break; case 2: this.G = value; break; case 3: this.T = value; break; case 4: this.Gap = value; break; case 5: this.AC = value; break; case 6: this.GA = value; break; case 7: this.GC = value; break; case 8: this.AT = value; break; case 9: this.TC = value; break; case 10: this.GT = value; break; case 11: this.GCA = value; break; case 12: this.ACT = value; break; case 13: this.GAT = value; break; case 14: this.GTC = value; break; case 15: this.Any = value; break; default: break; } index++; } }