/// <summary> /// Assume there's 4 keys, A B C D E. CBADE -> A<->C, B<->B, and so on. /// </summary> /// <param name="KeySet"></param> public Reflector(string KeySet) { Pair = new MappingPair(); for (int i = 1; i <= 26; i++) { Pair.Add(i, char.ToUpper(KeySet[i - 1]) - 64); } }
public Switchboard(string KeySet) // parallel for? { KeyPair = new MappingPair(); for (int i = 1; i <= 26; i++) { KeyPair.Add(i, char.ToUpper(KeySet[i - 1]) - 64); } }
public Reflector() { Pair = new MappingPair(); }
public Switchboard() { KeyPair = new MappingPair(); }