Skip to content

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

@JimmyCushnie

Description

@JimmyCushnie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions