SyntaxExtensions.Setter Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Overloads
Method | Summary |
---|---|
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
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
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