AlbLib.Texts.VisualEncoding.AddAll C# (CSharp) Méthode

AddAll() private méthode

private AddAll ( string tree ) : void
tree string
Résultat void
        private void AddAll(string tree)
        {
            XDocument table = Resources.CharTable;
            foreach(XElement elem in table.Root.Element(tree).Elements("pair"))
            {
                char ch = elem.Attribute("char").Value[0];
                byte b = Byte.Parse(elem.Attribute("code").Value);
                if(elem.Attribute("nochar")==null)
                    c2b[ch] = b;
                if(elem.Attribute("nocode")==null)
                    b2c[b] = ch;
            }
        }