Skip to main content

CSharpFactory.TryStatement(BlockSyntax, CatchClauseSyntax, FinallyClauseSyntax) Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement(Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax @catch, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? @finally = null)

Parameters

block BlockSyntax

catch CatchClauseSyntax

finally FinallyClauseSyntax

Returns

TryStatementSyntax