Delen via


ISourceGenerator.Initialize Method

Definition

Overloads

Initialize(GeneratorInitializationContext)

Called before generation occurs. A generator can use the context to register callbacks required to perform generation.

Initialize(InitializationContext)

Called before generation occurs. A generator can use the context to register callbacks required to perform generation.

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

Applies to