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.
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.
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 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"