Skip to main content

CSharpFactory.Block Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
Block(StatementSyntax)
Block(SyntaxToken, StatementSyntax, SyntaxToken)

Block(StatementSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block(Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement)

Parameters

statement StatementSyntax

Returns

BlockSyntax

Block(SyntaxToken, StatementSyntax, SyntaxToken)

public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block(Microsoft.CodeAnalysis.SyntaxToken openBrace, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, Microsoft.CodeAnalysis.SyntaxToken closeBrace)

Parameters

openBrace SyntaxToken

statement StatementSyntax

closeBrace SyntaxToken

Returns

BlockSyntax