Hello,
I need to generate structs and classes at run time in C#(might be in CLI) managed environment. Suppose I have all data and all data types associated with those data memebers of some class/struct. Now I need to generate structs/classes at runtime and after that I need to map data inside those runtime created structs fields.
e.g I have read data from an XML file i.e BSTR field1,BSTR field2,BSTR field3,BSTR field4,BSTR field5,long field6.
Now I need to create struct at runtime which has sizeof the sum of all fields (which I listed above) and then I can easily access those fields one by one. So that whole complete struct is formed.
How can I solve this problem?
Regards Usman