ConfigurationBinder source generator shouldn't generate empty methods #92151
Labels
area-Extensions-Configuration
enhancement
Product code improvement that does NOT require public API changes/additions
Milestone
Description
I noticed the following empty method when reviewing the codegen for the repro in #91324
I tried this with an empty class, and it seems we'll skip that, so this might be more specific to collection initialization.
Reproduction Steps
Compile the repro in #91324 when setting
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
.Observe the generated code.
Expected behavior
Only meaninful methods are generated, methods that do nothing should be avoided.
Actual behavior
Method generated that merely enumerates the configuration children of section.
Regression?
No
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: