GeneratorExecutionContext.SyntaxContextReceiver 属性

定义

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

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

属性值

适用于