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"})
if a property is an array, a
Withmethod is generated like so:It would nice syntactic sugar to have:
just so code could be
builder.WithData("bob")instead ofbuilder.WithData(new[]{"bob"})