CSharpFactory.GetAccessorDeclaration Method
Containing Type: CSharpFactory
Assembly: Roslynator.CSharp.dll
Overloads
GetAccessorDeclaration(ArrowExpressionClauseSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)
Parameters
expressionBody ArrowExpressionClauseSyntax
Returns
GetAccessorDeclaration(BlockSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body)
Parameters
body BlockSyntax
Returns
GetAccessorDeclaration(SyntaxTokenList, ArrowExpressionClauseSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody)
Parameters
modifiers SyntaxTokenList
expressionBody ArrowExpressionClauseSyntax
Returns
GetAccessorDeclaration(SyntaxTokenList, BlockSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax GetAccessorDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body)
Parameters
modifiers SyntaxTokenList
body BlockSyntax