dimanche 23 octobre 2016

C# code generation, generate create statement from object

I have an object in C#. (Which is the deserialize result of a complex JSON) Now I wish to create a string from that object.

A string that describes the creation in C# of that same object. Preferably as a single statement.

Why do I want this? Because I want to generate code using T4, that contains the create statement for this object.

I was hoping there is some sort of utility class / reflection class for this in the .NET framework.





Aucun commentaire:

Enregistrer un commentaire