StyleCop.CSharp by StyleCop contributors, Andy Reeves, Chris Dahlberg

<PackageReference Include="StyleCop.CSharp" Version="6.2.0" />

.NET API 245,760 bytes


public sealed class Declaration
Describes an element declaration.
public bool AccessModifier { get; }

Gets a value indicating whether the element has an access modifier.

Gets the access modifier type for the element.

public ElementType ElementType { get; }

Gets the element type.

public string Name { get; }

Gets the name of the element.

public CsTokenList Tokens { get; }

Gets the list of tokens contained within the declaration.

public bool ContainsModifier(CsTokenType[] types)

Indicates whether the declaration contains one of the given modifiers.