EventElement Class
An event.
public sealed class EventElement : MemberElement- Inheritance
MemberElementEventElement
Properties
| Name | Description |
|---|---|
| Accessibility | Gets the declared accessibility of the member. |
| Adder | Gets the add accessor, or null. |
| Attributes | Gets the attributes applied to the member. |
| IsStatic | Gets a value indicating whether the member is static. |
| Location | Gets the first statement of the member when the PDB is available, or null. |
| Remover | Gets the remove accessor, or null. |
| Type | Gets the type of the event, a delegate type. |
Accessibility
EventElement.csGets the declared accessibility of the member.
public override ElementAccessibility Accessibility { get; }Property value
Adder
EventElement.csAttributes
EventElement.csGets the attributes applied to the member.
public override IReadOnlyList<AttributeElement> Attributes { get; }Property value
IsStatic
EventElement.csLocation
EventElement.csGets the first statement of the member when the PDB is available, or null.
public override SourceLocation? Location { get; }