Beispiel #1
0
 public static MethodDeclarationSyntax WithBody(this MethodDeclarationSyntax method, params StatementSyntax[] syntax)
 {
     return(method.WithBody(Statements.Block(syntax)));
 }
 public static AccessorDeclarationSyntax Setter(ExpressionSyntax body)
 {
     return(Setter(Statements.Block(body.AsStatement())));
 }