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