Skip to main content

StatementListInfo.ReplaceRange(StatementSyntax, IEnumerable<StatementSyntax>) Method

Containing Type: StatementListInfo

Assembly: Roslynator.CSharp.dll

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

public Roslynator.CSharp.Syntax.StatementListInfo ReplaceRange(Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statementInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> newStatements)

Parameters

statementInList StatementSyntax

newStatements IEnumerable<StatementSyntax>

Returns

StatementListInfo