示例#1
0
        public IDictionary GetConfig(string NameValue)
        {
            XmlNodeList Section = XmlConfiguration.GetElementsByTagName(NameValue);

            foreach (XmlNode Node in Section)
            {
                if (Node.LocalName == NameValue)
                {
                    DictionarySectionHandler NodeHandler = new DictionarySectionHandler();
                    return((IDictionary)NodeHandler.Create(null, null, Node));
                }
            }

            return(null);
        }