Skip to content

[enhancement]: for array with methods, consider adding the params keyword for easier use #39

@powerdude

Description

@powerdude

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"})

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions