m31coding / M31.FluentAPI

Generate fluent builders for your C# classes with ease.
MIT License
94 stars 4 forks source link

Support default values #3

Closed vzam closed 5 months ago

vzam commented 6 months ago

Currently, when using FluentMethod with default values, the FluentApi does not keep the default values in the generated builder, such that the value always has to be provided. It would be nice if the generator was able to carry them over. See also ParameterInfo.DefaultValue. It would be interesting if the FluentMethod also allowed different signatures for the same method name at the same step, although I can imagine that overloads are supported already (I didn't verify that).

m31coding commented 5 months ago

Thank you, good catch! Yes, overloads are already working.