GeneratorAttributeSyntaxContext.TargetSymbol Property

Definition

The symbol that the attribute is attached to. For example, with [CLSCompliant] class C { } this would be the INamedTypeSymbol for "C".

public Microsoft.CodeAnalysis.ISymbol TargetSymbol { get; }
member this.TargetSymbol : Microsoft.CodeAnalysis.ISymbol
Public ReadOnly Property TargetSymbol As ISymbol

Property Value

Applies to