Freigeben über


GeneratorAttributeSyntaxContext.TargetNode Property

Definition

The syntax node the attribute is attached to. For example, with [CLSCompliant] class C { } this would the class declaration node.

public Microsoft.CodeAnalysis.SyntaxNode TargetNode { get; }
member this.TargetNode : Microsoft.CodeAnalysis.SyntaxNode
Public ReadOnly Property TargetNode As SyntaxNode

Property Value

Applies to