Skip to main content

UsingDirectiveListInfo.ReplaceAt(Int32, UsingDirectiveSyntax) Method

Containing Type: UsingDirectiveListInfo

Assembly: Roslynator.CSharp.dll

Creates a new UsingDirectiveListInfo with the using directive at the specified index replaced with a new using directive.

public Roslynator.CSharp.Syntax.UsingDirectiveListInfo ReplaceAt(int index, Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax newUsingDirective)

Parameters​

index   Int32

newUsingDirective   UsingDirectiveSyntax

Returns​

UsingDirectiveListInfo