Exemple #1
0
        public Reflector(FixedMechanicReflector re)
        {
            map = new Dictionary <char, char>(26);

            string[] pairing = re.Pairing;
            foreach (string pair in pairing)
            {
                char key = pair.ElementAt(0);
                char val = pair.ElementAt(1);
                map.Add(key, val);
                map.Add(val, key);
            }
        }
Exemple #2
0
        public Reflector(FixedMechanicReflector re)
        {
            map = new Dictionary<char, char>(26);

            string[] pairing = re.Pairing;
            foreach (string pair in pairing)
            {
                char key = pair.ElementAt(0);
                char val = pair.ElementAt(1);
                map.Add(key, val);
                map.Add(val, key);

            }
        }