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