CodeGeneratorContext.ChangeStatementCollector 方法

定义

分配新语句收集器并返回用于还原旧语句收集器的可释放操作。

public IDisposable ChangeStatementCollector(Action<string,System.CodeDom.CodeLinePragma> collector);
member this.ChangeStatementCollector : Action<string, System.CodeDom.CodeLinePragma> -> IDisposable
Public Function ChangeStatementCollector (collector As Action(Of String, CodeLinePragma)) As IDisposable

参数

collector
Action<String,CodeLinePragma>

新语句收集器。

返回

用于还原旧语句收集器的可释放操作。

适用于