feat(dal): добавлено расширение string ApplyShortcode - позволяет подставлять в строковых переменные шаблонные значения типа %ЭК%

This commit is contained in:
Mikhail Kuznetsov
2024-03-20 15:26:14 +10:00
parent ff712ed126
commit b803f8beaa
6 changed files with 54 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
namespace PARR.Constants.Shortcode
{
public static class ShortcodeNames
{
private static Dictionary<Shortcodes, string> ShortcodeNamesList = new Dictionary<Shortcodes, string>
{
{Shortcodes.EK, "%ЭК%" }
};
public static string GetShortcodeName(Shortcodes shortcode)
{
return ShortcodeNamesList[shortcode];
}
}
}

View File

@@ -0,0 +1,8 @@
namespace PARR.Constants.Shortcode
{
public enum Shortcodes
{
EK
//!!!Не забыть добавить в справочник имен (ShortcodeName) строковое значение
}
}