Пример #1
0
 public Dictionary <string, object> GetValue()
 {
     return(new Dictionary <string, object>
     {
         ["SourceText"] = SourceText.GetValue(),
         ["TransformType"] = TransformType
     });
 }
Пример #2
0
            public Dictionary <string, object> GetValue()
            {
                var array = new Dictionary <string, object> [Arguments.Length];

                for (int i = 0; i < array.Length; i++)
                {
                    array[i] = Arguments[i].GetValue();
                }

                return(new Dictionary <string, object>
                {
                    ["SourceFmt"] = SourceFmt.GetValue(),
                    ["Arguments"] = array,
                });
            }
Пример #3
0
            public Dictionary <string, object> GetValue()
            {
                var ret = new object[Arguments.Length];

                for (int i = 0; i < ret.Length; i++)
                {
                    ret[i] = Arguments[i] switch
                    {
                        _ => Arguments[i].GetValue(),
                    };
                }
                return(new Dictionary <string, object>
                {
                    ["FormatText"] = FormatText.GetValue(),
                    ["Arguments"] = ret
                });
            }