Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 public Reflector()
 {
     Pair = new MappingPair();
 }
Exemplo n.º 4
0
 public Switchboard()
 {
     KeyPair = new MappingPair();
 }