CSharpGeneratorDriver Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CSharpGeneratorDriver(ParseOptions, ImmutableArray<ISourceGenerator>, ImmutableArray<AdditionalText>)
- Source:
- CSharpGeneratorDriver.cs
public CSharpGeneratorDriver (Microsoft.CodeAnalysis.ParseOptions parseOptions, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> generators, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> additionalTexts);
new Microsoft.CodeAnalysis.CSharp.CSharpGeneratorDriver : Microsoft.CodeAnalysis.ParseOptions * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> -> Microsoft.CodeAnalysis.CSharp.CSharpGeneratorDriver
Public Sub New (parseOptions As ParseOptions, generators As ImmutableArray(Of ISourceGenerator), additionalTexts As ImmutableArray(Of AdditionalText))
Parameters
- parseOptions
- ParseOptions
- generators
- ImmutableArray<ISourceGenerator>
- additionalTexts
- ImmutableArray<AdditionalText>
Applies to
CSharpGeneratorDriver(ParseOptions, ImmutableArray<ISourceGenerator>, AnalyzerConfigOptionsProvider, ImmutableArray<AdditionalText>)
- Source:
- CSharpGeneratorDriver.cs
public CSharpGeneratorDriver (Microsoft.CodeAnalysis.ParseOptions parseOptions, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> generators, Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider optionsProvider, System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> additionalTexts);
new Microsoft.CodeAnalysis.CSharp.CSharpGeneratorDriver : Microsoft.CodeAnalysis.ParseOptions * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.ISourceGenerator> * Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptionsProvider * System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.AdditionalText> -> Microsoft.CodeAnalysis.CSharp.CSharpGeneratorDriver
Public Sub New (parseOptions As ParseOptions, generators As ImmutableArray(Of ISourceGenerator), optionsProvider As AnalyzerConfigOptionsProvider, additionalTexts As ImmutableArray(Of AdditionalText))
Parameters
- parseOptions
- ParseOptions
- generators
- ImmutableArray<ISourceGenerator>
- optionsProvider
- AnalyzerConfigOptionsProvider
- additionalTexts
- ImmutableArray<AdditionalText>
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.