共用方式為


GeneratorDriver.ReplaceGenerators 方法

定義

public Microsoft.CodeAnalysis.GeneratorDriver ReplaceGenerators (System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> generators);
member this.ReplaceGenerators : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> -> Microsoft.CodeAnalysis.GeneratorDriver
Public Function ReplaceGenerators (generators As ImmutableArray(Of ISourceGenerator)) As GeneratorDriver

參數

傳回

適用於