Skip to main content

UsingDirectiveListInfo.WithUsings Method

Containing Type: UsingDirectiveListInfo

Assembly: Roslynator.CSharp.dll

Overloads​

MethodSummary
WithUsings(IEnumerable<UsingDirectiveSyntax>)Creates a new UsingDirectiveListInfo with the usings updated.
WithUsings(SyntaxList<UsingDirectiveSyntax>)Creates a new UsingDirectiveListInfo with the usings updated.

WithUsings(IEnumerable<UsingDirectiveSyntax>)​

Creates a new UsingDirectiveListInfo with the usings updated.

public Roslynator.CSharp.Syntax.UsingDirectiveListInfo WithUsings(System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax> usings)

Parameters​

usings   IEnumerable<UsingDirectiveSyntax>

Returns​

UsingDirectiveListInfo

WithUsings(SyntaxList<UsingDirectiveSyntax>)​

Creates a new UsingDirectiveListInfo with the usings updated.

public Roslynator.CSharp.Syntax.UsingDirectiveListInfo WithUsings(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax> usings)

Parameters​

usings   SyntaxList<UsingDirectiveSyntax>

Returns​

UsingDirectiveListInfo