Ejemplo n.º 1
0
        public string GetObject(string section, string name)
        {
            if (Values.ContainsKey(section) && Values[section].ContainsKey(name) &&
                !string.IsNullOrEmpty(Values[section][name]))
            {
                return(Values[section][name]);
            }

            if (Values.ContainsKey("UNKNOWN_HASHES"))
            {
                var hash = HashFunctions.HashStringSdbm(section, name).ToString();
                if (Values["UNKNOWN_HASHES"].ContainsKey(hash))
                {
                    //TODO: Log that unkown hash was found!
                    return(Values["UNKNOWN_HASHES"][hash]);
                }
            }

            return(null);
        }