Beispiel #1
0
            ///-------------------------------------------------------------
            public string this[FunctionKeyword keyword]
            {
                get
                {
                    if (datas.TryGetValue(keyword.ToString(), out string result))
                    {
                        return(result);
                    }

                    AddData(keyword);

                    return(this[keyword]);
                }
            }
Beispiel #2
0
 public static string S(this FunctionKeyword value)
 {
     return(Enum.GetNames(typeof(FunctionKeyword))[(int)value]);
 }
Beispiel #3
0
 ///-------------------------------------------------------------
 private void AddData(FunctionKeyword functionKeyword, string additionalText)
 {
     datas.Add(functionKeyword.ToString(), $"{prefix}_{additionalText}_{functionKeyword.S()}");
 }
Beispiel #4
0
 ///-------------------------------------------------------------
 private void AddData(FunctionKeyword functionKeyword)
 {
     datas.Add(functionKeyword.ToString(), $"{prefix}_{functionKeyword.S()}");
 }