[enhancement]: for array `with` methods, consider adding the `params` keyword for easier use
powerdude opened this issue · 1 comments
powerdude commented
if a property is an array, a With
method is generated like so:
public Model WithData(string[] value) => WithData(() => value);
It would nice syntactic sugar to have:
public Model WithData(params string[] value) => WithData(() => value);
just so code could be builder.WithData("bob")
instead of builder.WithData(new[]{"bob"})