StatementListInfo.ReplaceAt(Int32, StatementSyntax) Method
Containing Type: StatementListInfo
Assembly: Roslynator.CSharp.dll
Creates a new StatementListInfo with the statement at the specified index replaced with a new statement.
public Roslynator.CSharp.Syntax.StatementListInfo ReplaceAt(int index, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax newStatement)
Parameters
index Int32
newStatement StatementSyntax