Skip to main content

CSharpFactory.StructDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

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

StructDeclaration(SyntaxTokenList, String, SyntaxList<MemberDeclarationSyntax>)

public static Microsoft.CodeAnalysis.CSharp.Syntax.StructDeclarationSyntax StructDeclaration(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

StructDeclarationSyntax

StructDeclaration(SyntaxTokenList, SyntaxToken, SyntaxList<MemberDeclarationSyntax>)

public static Microsoft.CodeAnalysis.CSharp.Syntax.StructDeclarationSyntax StructDeclaration(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

StructDeclarationSyntax