Пример #1
0
        private Dictionary <string, string> ReadJSFile(string path)
        {
            if (!File.Exists(path))
            {
                throw new FileNotFoundException("Could not find file " + path, path);
            }

            var lines      = File.ReadAllLines(path).ToList();
            var fileToDict = new JsFileToDictionary(lines);

            return(fileToDict.GetDictionary());
        }
Пример #2
0
        private Dictionary<string, string> ReadJSFile(string path)
        {
            if (!File.Exists(path))
            {
                throw new FileNotFoundException("Could not find file " + path, path);
            }

            var lines = File.ReadAllLines(path).ToList();
            var fileToDict = new JsFileToDictionary(lines);
            return fileToDict.GetDictionary();
        }