Пример #1
0
        private void ParseConfig()
        {
            dynamic config = YamlHelper.ConfigFromFile("Translator/YandexTranslatorConfig.yaml");

            _dictionaryUri     = config["dictionary_uri"].ToString();
            _dictionaryKey     = config["dictionary_key"].ToString();
            _detectLanguageUri = config["detect_language_uri"].ToString();
            _tranlateKey       = config["translate_key"].ToString();
            _firstLanguage     = config["first_language"].ToString();
            _secondLanguage    = config["second_language"].ToString();
        }