Skip to main content

CSharpFactory.ClassDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
ClassDeclaration(SyntaxTokenList, String, SyntaxList<MemberDeclarationSyntax>)
ClassDeclaration(SyntaxTokenList, SyntaxToken, SyntaxList<MemberDeclarationSyntax>)

ClassDeclaration(SyntaxTokenList, String, SyntaxList<MemberDeclarationSyntax>)

public static Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax ClassDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, string identifier, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> members = default)

Parameters

modifiers SyntaxTokenList

identifier String

members SyntaxList<MemberDeclarationSyntax>

Returns

ClassDeclarationSyntax

ClassDeclaration(SyntaxTokenList, SyntaxToken, SyntaxList<MemberDeclarationSyntax>)

public static Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax ClassDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> members = default)

Parameters

modifiers SyntaxTokenList

identifier SyntaxToken

members SyntaxList<MemberDeclarationSyntax>

Returns

ClassDeclarationSyntax