Skip to main content

CSharpFactory.PropertyDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
PropertyDeclaration(SyntaxTokenList, TypeSyntax, SyntaxToken, AccessorListSyntax, ExpressionSyntax)
PropertyDeclaration(SyntaxTokenList, TypeSyntax, SyntaxToken, ArrowExpressionClauseSyntax)

PropertyDeclaration(SyntaxTokenList, TypeSyntax, SyntaxToken, AccessorListSyntax, ExpressionSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax PropertyDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.AccessorListSyntax accessorList, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? value = null)

Parameters

modifiers SyntaxTokenList

type TypeSyntax

identifier SyntaxToken

accessorList AccessorListSyntax

value ExpressionSyntax

Returns

PropertyDeclarationSyntax

PropertyDeclaration(SyntaxTokenList, TypeSyntax, SyntaxToken, ArrowExpressionClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax PropertyDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)

Parameters

modifiers SyntaxTokenList

type TypeSyntax

identifier SyntaxToken

expressionBody ArrowExpressionClauseSyntax

Returns

PropertyDeclarationSyntax