/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/ScriptEngine.HostedScript/FormatStringConfigProvider.cs
28 строк
860 B
Andrei Ovsiankin
Вынес локализацию в общую библиотеку
05 янв 2021, 19:47
05 янв 2021, 19:47
76f3c26
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using System; using System.Collections.Generic; using OneScript.Commons; namespace ScriptEngine.HostedScript { public class FormatStringConfigProvider : IConfigProvider { public string ValuesString { get; set; } public Func<IDictionary<string, string>> GetProvider() { var localCopy = ValuesString; return () => { var paramList = new FormatParametersList(localCopy); return paramList.ToDictionary(); }; } } }