ISourceGenerator.Initialize Method
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
Initialize(GeneratorInitializationContext) |
Called before generation occurs. A generator can use the |
Initialize(InitializationContext) |
Called before generation occurs. A generator can use the |
Initialize(GeneratorInitializationContext)
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
- Source:
- ISourceGenerator.cs
Called before generation occurs. A generator can use the context
to register callbacks required to perform generation.
public void Initialize (Microsoft.CodeAnalysis.GeneratorInitializationContext context);
abstract member Initialize : Microsoft.CodeAnalysis.GeneratorInitializationContext -> unit
Public Sub Initialize (context As GeneratorInitializationContext)
Parameters
- context
- GeneratorInitializationContext
The GeneratorInitializationContext to register callbacks on
Applies to
Initialize(InitializationContext)
Called before generation occurs. A generator can use the context
to register callbacks required to perform generation.
public void Initialize (Microsoft.CodeAnalysis.InitializationContext context);
abstract member Initialize : Microsoft.CodeAnalysis.InitializationContext -> unit
Public Sub Initialize (context As InitializationContext)
Parameters
- context
- InitializationContext
The InitializationContext to register callbacks on