Skip to main content

CSharpFactory.RemoveAccessorDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
RemoveAccessorDeclaration(ArrowExpressionClauseSyntax)
RemoveAccessorDeclaration(BlockSyntax)
RemoveAccessorDeclaration(SyntaxTokenList, ArrowExpressionClauseSyntax)
RemoveAccessorDeclaration(SyntaxTokenList, BlockSyntax)

RemoveAccessorDeclaration(ArrowExpressionClauseSyntax)

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

Parameters

expressionBody ArrowExpressionClauseSyntax

Returns

AccessorDeclarationSyntax

RemoveAccessorDeclaration(BlockSyntax)

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

Parameters

body BlockSyntax

Returns

AccessorDeclarationSyntax

RemoveAccessorDeclaration(SyntaxTokenList, ArrowExpressionClauseSyntax)

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

Parameters

modifiers SyntaxTokenList

expressionBody ArrowExpressionClauseSyntax

Returns

AccessorDeclarationSyntax

RemoveAccessorDeclaration(SyntaxTokenList, BlockSyntax)

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

Parameters

modifiers SyntaxTokenList

body BlockSyntax

Returns

AccessorDeclarationSyntax