Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Records] Support constructor filling to create positional records #168

Open
xperiandri opened this issue May 10, 2022 · 1 comment
Open

Comments

@xperiandri
Copy link
Contributor

With the current requirement of the parameterless constructor, it is impossible to create positional records.
I propose to rename IPropertyFiller into IValueFiller and add the ability to fill the largest (most parameters) constructor on instance creation.
I already have a code that adds support for constructors filling.

@xperiandri
Copy link
Contributor Author

In #169 it works if you try to get the instance of the configured type.
But if you have 2 configured types and one takes another in the constructor, then that input instance is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant