GeneratorAttribute Constructors

Definition

Overloads

GeneratorAttribute()

Attribute constructor used to specify the attached class is a source generator that provides CSharp sources.

GeneratorAttribute(String, String[])

Attribute constructor used to specify the attached class is a source generator and indicate which language(s) it supports.

GeneratorAttribute()

Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs

Attribute constructor used to specify the attached class is a source generator that provides CSharp sources.

public GeneratorAttribute ();
Public Sub New ()

Applies to

GeneratorAttribute(String, String[])

Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs
Source:
GeneratorAttribute.cs

Attribute constructor used to specify the attached class is a source generator and indicate which language(s) it supports.

public GeneratorAttribute (string firstLanguage, params string[] additionalLanguages);
new Microsoft.CodeAnalysis.GeneratorAttribute : string * string[] -> Microsoft.CodeAnalysis.GeneratorAttribute
Public Sub New (firstLanguage As String, ParamArray additionalLanguages As String())

Parameters

firstLanguage
String

One language to which the generator applies.

additionalLanguages
String[]

Additional languages to which the generator applies. See LanguageNames.

Applies to