Skip to main content

CSharpFactory.AddAccessorDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
AddAccessorDeclaration(ArrowExpressionClauseSyntax)
AddAccessorDeclaration(BlockSyntax)
AddAccessorDeclaration(SyntaxTokenList, ArrowExpressionClauseSyntax)
AddAccessorDeclaration(SyntaxTokenList, BlockSyntax)

AddAccessorDeclaration(ArrowExpressionClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AddAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)

Parameters

expressionBody ArrowExpressionClauseSyntax

Returns

AccessorDeclarationSyntax

AddAccessorDeclaration(BlockSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AddAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body)

Parameters

body BlockSyntax

Returns

AccessorDeclarationSyntax

AddAccessorDeclaration(SyntaxTokenList, ArrowExpressionClauseSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AddAccessorDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)

Parameters

modifiers SyntaxTokenList

expressionBody ArrowExpressionClauseSyntax

Returns

AccessorDeclarationSyntax

AddAccessorDeclaration(SyntaxTokenList, BlockSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AddAccessorDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body)

Parameters

modifiers SyntaxTokenList

body BlockSyntax

Returns

AccessorDeclarationSyntax