예제 #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
                });
            }