Skip to main content

UsingDirectiveListInfo.Replace(UsingDirectiveSyntax, UsingDirectiveSyntax) Method

Containing Type: UsingDirectiveListInfo

Assembly: Roslynator.CSharp.dll

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

public Roslynator.CSharp.Syntax.UsingDirectiveListInfo Replace(Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax usingInLine, Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax newUsingDirective)

Parameters

usingInLine UsingDirectiveSyntax

newUsingDirective UsingDirectiveSyntax

Returns

UsingDirectiveListInfo