Exemple #1
0
        public string getItemURL(string nodeName, string attributeName)
        {
            string v = "";

            if (_isConfigExist == false)
            {
                return(v);
            }

            Dictionary <string, AbstractSection> dic = null;

            if (configuration.TryGetValue(nodeName, out dic) == false)
            {
                return(v);
            }

            AbstractSection se = null;

            if (dic.TryGetValue(attributeName, out se) == false)
            {
                return(v);
            }

            if (se != null)
            {
                v = se.value;
            }

            return(v);
        }
Exemple #2
0
        public AbstractSection getSection(string nodeName, string attributeName)
        {
            Dictionary <string, AbstractSection> dic = null;

            if (configuration.TryGetValue(nodeName, out dic) == false)
            {
                return(null);
            }

            AbstractSection se = null;

            if (dic.TryGetValue(attributeName, out se) == false)
            {
                return(null);
            }

            return(se);
        }