mercredi 27 avril 2016

Is it possible to programmatically create objects of structs and fill the fields, when you have a list of struct names and field values

Is it possible to programmatically create objects of structs and fill the fields, when you have a list of struct names and field values? Say I have to read entry from (JSON)file and fill up my structs. I have value struct names and values but i want to code such that code will loop all structs and fill the in-memory data. may sound wierd, but is there a way?

Aucun commentaire:

Enregistrer un commentaire