Skip to main content

SyntaxExtensions.Setter Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
Setter(AccessorListSyntax)Returns a set accessor contained in the specified list.
Setter(IndexerDeclarationSyntax)Returns a set accessor that is contained in the specified indexer declaration.
Setter(PropertyDeclarationSyntax)Returns property set accessor, if any.

Setter(AccessorListSyntax)

Returns a set accessor contained in the specified list.

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax? Setter(this Microsoft.CodeAnalysis.CSharp.Syntax.AccessorListSyntax accessorList)

Parameters

accessorList AccessorListSyntax

Returns

AccessorDeclarationSyntax

Setter(IndexerDeclarationSyntax)

Returns a set accessor that is contained in the specified indexer declaration.

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax? Setter(this Microsoft.CodeAnalysis.CSharp.Syntax.IndexerDeclarationSyntax indexerDeclaration)

Parameters

indexerDeclaration IndexerDeclarationSyntax

Returns

AccessorDeclarationSyntax

Setter(PropertyDeclarationSyntax)

Returns property set accessor, if any.

public static Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax? Setter(this Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax propertyDeclaration)

Parameters

propertyDeclaration PropertyDeclarationSyntax

Returns

AccessorDeclarationSyntax