共用方式為


GeneratorExecutionContext.SyntaxReceiver 屬性

定義

如果產生器在 ISyntaxReceiver 初始化期間註冊 ,這會是針對這個產生階段建立的實例。

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

屬性值

適用於