Skip to main content

CSharpFactory.NamespaceDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
NamespaceDeclaration(NameSyntax, MemberDeclarationSyntax)
NamespaceDeclaration(NameSyntax, SyntaxList<MemberDeclarationSyntax>)

NamespaceDeclaration(NameSyntax, MemberDeclarationSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax NamespaceDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax member)

Parameters

name NameSyntax

member MemberDeclarationSyntax

Returns

NamespaceDeclarationSyntax

NamespaceDeclaration(NameSyntax, SyntaxList<MemberDeclarationSyntax>)

public static Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax NamespaceDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.NameSyntax name, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> members)

Parameters

name NameSyntax

members SyntaxList<MemberDeclarationSyntax>

Returns

NamespaceDeclarationSyntax