Skip to main content

CSharpFactory.Parameter Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
Parameter(TypeSyntax, String, ExpressionSyntax)
Parameter(TypeSyntax, SyntaxToken, EqualsValueClauseSyntax)
Parameter(TypeSyntax, SyntaxToken, ExpressionSyntax)

Parameter(TypeSyntax, String, ExpressionSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax Parameter(Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, string identifier, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? @default = null)

Parameters

type TypeSyntax

identifier String

default ExpressionSyntax

Returns

ParameterSyntax

Parameter(TypeSyntax, SyntaxToken, EqualsValueClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax Parameter(Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax @default)

Parameters

type TypeSyntax

identifier SyntaxToken

default EqualsValueClauseSyntax

Returns

ParameterSyntax

Parameter(TypeSyntax, SyntaxToken, ExpressionSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax Parameter(Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? @default = null)

Parameters

type TypeSyntax

identifier SyntaxToken

default ExpressionSyntax

Returns

ParameterSyntax