Skip to main content

CSharpFactory.VariableDeclarator Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
VariableDeclarator(String, EqualsValueClauseSyntax)
VariableDeclarator(SyntaxToken, EqualsValueClauseSyntax)

VariableDeclarator(String, EqualsValueClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax VariableDeclarator(string identifier, Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax initializer)

Parameters

identifier String

initializer EqualsValueClauseSyntax

Returns

VariableDeclaratorSyntax

VariableDeclarator(SyntaxToken, EqualsValueClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax VariableDeclarator(Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax? initializer)

Parameters

identifier SyntaxToken

initializer EqualsValueClauseSyntax

Returns

VariableDeclaratorSyntax