Skip to main content

UsingDirectiveListInfo.ReplaceRange(UsingDirectiveSyntax, IEnumerable<UsingDirectiveSyntax>) Method

Containing Type: UsingDirectiveListInfo

Assembly: Roslynator.CSharp.dll

Creates a new UsingDirectiveListInfo with the specified using directive replaced with new usings.

public Roslynator.CSharp.Syntax.UsingDirectiveListInfo ReplaceRange(Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax usingInLine, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax> newUsingDirectives)

Parameters​

usingInLine   UsingDirectiveSyntax

newUsingDirectives   IEnumerable<UsingDirectiveSyntax>

Returns​

UsingDirectiveListInfo