GeneratorExecutionContext.SyntaxReceiver 属性

定义

如果生成器在初始化期间注册了一个 ISyntaxReceiver ,则这是为此生成传递创建的实例。

public Microsoft.CodeAnalysis.ISyntaxReceiver? SyntaxReceiver { get; }
member this.SyntaxReceiver : Microsoft.CodeAnalysis.ISyntaxReceiver
Public ReadOnly Property SyntaxReceiver As ISyntaxReceiver

属性值

适用于