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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.