private List <string> FormatMethodParameters(CodeGenerationParameter parameter)
 {
     return(parameter.RetrieveAllRelated(ResolveFieldsLabel(parameter)).Select(param =>
     {
         var paramType = StateFieldDetail.TypeOf(param.Parent(Label.Aggregate), param.value);
         return string.Format(_signaturePatttern, paramType, param.value);
     }).ToList());
 }
Beispiel #2
0
 public IEnumerable <string> Format(CodeGenerationParameter aggregate, IEnumerable <CodeGenerationParameter> fields) => fields.Select(field => string.Format(_pattern, StateFieldDetail.TypeOf(aggregate, field.value), field.value));