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

SUCC should be smart enough to use constructors when deserializing #37

Open
JimmyCushnie opened this issue Nov 20, 2021 · 0 comments
Open
Labels
feature/enhancement New feature or request

Comments

@JimmyCushnie
Copy link
Owner

JimmyCushnie commented Nov 20, 2021

Suppose I have the following class:

public class Color
{
    public byte R, G, B;
    public Color(byte r, byte g, byte b) => (R, G, B) = (r, g, b);
}

Currently, SUCC cannot deserialize this type, because it requires complex types to have a parameterless constructor. The system should be upgraded to check the constructor parameter names against the member names, and use those instead. Related: #14

@JimmyCushnie JimmyCushnie added the feature/enhancement New feature or request label Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant