CSharpFactory.AddAccessorDeclaration Method
Containing Type: CSharpFactory
Assembly: Roslynator.CSharp.dll
Overloads
AddAccessorDeclaration(ArrowExpressionClauseSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AddAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)
Parameters
expressionBody ArrowExpressionClauseSyntax
Returns
AddAccessorDeclaration(BlockSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax AddAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body)
Parameters
body BlockSyntax
Returns
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
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