Skip to content

[Enhancement] Object Dumper to C# - make it detect what default constructor does #130

@ishepherd

Description

@ishepherd

Generated C# calls the default constructor but it doesn't know what the constructor does.

Is it feasible (!!) for Object Dumper to call the constructor to find out the initial state, and make the right calls for desired state?

Example

Let's say the dumped object has property string A, and the value is null

  • If the constructor has A = "";
    • Then Object Dumper would generate A = null;
  • But if the constructor does not set A
    • Then Object Dumper wouldn't set A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions