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