コード例 #1
0
        static IEnumerable <string> FormatHeaderTableArgs(Step Step, IEnumerable <string> Row)
        {
            var Args = Step.ArgDefinitions.Skip(Step.Args.Count).ToArray();

            return(Row.Select((Value, i) =>
                              ArgFormatter.Format(Value, Args[i].ParameterType)));
        }
コード例 #2
0
 static string FormatArgForObjectInitializer(string Value, Type ObjectArg, string FieldName)
 {
     return(string.Format
            (
                FieldInitializerTemplate,
                FieldName,
                ArgFormatter.Format(Value, ObjectArg.FieldType(FieldName))
            ));
 }
コード例 #3
0
 static IEnumerable <string> FormatTableArgs(Step Step, IEnumerable <string> Row)
 {
     return(Row.Select(Arg => ArgFormatter.Format(Arg, Step.TableItemType())));
 }