string ResourceGenerator { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The ResourceGenerator property represents the name of the generator responsible for creating this embedded resource. It functions as a sub-compiler, indicating the specific generator used during the resource creation process.

Usage

Use the ResourceGenerator property to retrieve or assign the name of the generator that created the resource. This property is particularly useful for identifying the source generator when dealing with multiple resource generators in a project.

Example

// Example of accessing the ResourceGenerator property
EmbeddedResource resource = new EmbeddedResource();
string generatorName = resource.ResourceGenerator;

// Set the ResourceGenerator property
resource.ResourceGenerator = "MyCustomGenerator";

// Output the generator name
string currentGenerator = resource.ResourceGenerator;
// currentGenerator should now be "MyCustomGenerator"