AnalyzerReference.GetGenerators 方法

定义

重载

GetGenerators()
已过时.

获取此程序集引用中定义的所有源生成器。

GetGenerators(String)

获取给定程序集引用 language中定义的所有生成器。

GetGenerators()

Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs

注意

Use GetGenerators(string language) or GetGeneratorsForAllLanguages()

获取此程序集引用中定义的所有源生成器。

[System.Obsolete("Use GetGenerators(string language) or GetGeneratorsForAllLanguages()")]
public virtual System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> GetGenerators ();
public virtual System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> GetGenerators ();
[<System.Obsolete("Use GetGenerators(string language) or GetGeneratorsForAllLanguages()")>]
abstract member GetGenerators : unit -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator>
override this.GetGenerators : unit -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator>
abstract member GetGenerators : unit -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator>
override this.GetGenerators : unit -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator>
Public Overridable Function GetGenerators () As ImmutableArray(Of ISourceGenerator)

返回

属性

适用于

GetGenerators(String)

Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs
Source:
AnalyzerReference.cs

获取给定程序集引用 language中定义的所有生成器。

public virtual System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> GetGenerators (string language);
abstract member GetGenerators : string -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator>
override this.GetGenerators : string -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator>
Public Overridable Function GetGenerators (language As String) As ImmutableArray(Of ISourceGenerator)

参数

language
String

语言名称。

返回

适用于