Skip to main content

StatementListInfo.Replace(StatementSyntax, StatementSyntax) Method

Containing Type: StatementListInfo

Assembly: Roslynator.CSharp.dll

Creates a new StatementListInfo with the specified statement replaced with the new statement.

public Roslynator.CSharp.Syntax.StatementListInfo Replace(Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statementInList, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax newStatement)

Parameters

statementInList StatementSyntax

newStatement StatementSyntax

Returns

StatementListInfo