Skip to main content

CSharpFactory.EnumMemberDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
EnumMemberDeclaration(String, EqualsValueClauseSyntax)
EnumMemberDeclaration(String, ExpressionSyntax)
EnumMemberDeclaration(SyntaxToken, EqualsValueClauseSyntax)
EnumMemberDeclaration(SyntaxToken, ExpressionSyntax)

EnumMemberDeclaration(String, EqualsValueClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax EnumMemberDeclaration(string name, Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax value)

Parameters

name String

value EqualsValueClauseSyntax

Returns

EnumMemberDeclarationSyntax

EnumMemberDeclaration(String, ExpressionSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax EnumMemberDeclaration(string name, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax value)

Parameters

name String

value ExpressionSyntax

Returns

EnumMemberDeclarationSyntax

EnumMemberDeclaration(SyntaxToken, EqualsValueClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax EnumMemberDeclaration(Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax value)

Parameters

identifier SyntaxToken

value EqualsValueClauseSyntax

Returns

EnumMemberDeclarationSyntax

EnumMemberDeclaration(SyntaxToken, ExpressionSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax EnumMemberDeclaration(Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax value)

Parameters

identifier SyntaxToken

value ExpressionSyntax

Returns

EnumMemberDeclarationSyntax