Syntax - Property declarations

  • Last updated: July 7, 2024

BasePropertyDeclaration inheritance

BasePropertyDeclarationSyntax is derived by:

  • EventDeclarationSyntax
  • IndexerDeclarationSyntax
  • PropertyDeclarationSyntax

All declarations have an AccessorList, ExplicitInterfaceSpecifier, and Type in addition to AttributeList and Modifiers.

Event declarations have an EventKeyword, Identifier, and SemiColonToken.

Indexer declarations have an ExpressionBody, ParameterList, as well as Semicolon, SemicolonToken, and ThisKeyword trivia.

Property declarations have an ExpressionBody, Identifier, and Initializer, as well as Semicolon and SemicolonToken trivia.