dynamic compilation of class based on xsd
I know that there are classes like ICodeCompiler where in I can create dynamic instances of a class. For example:
ICodeCompiler comp = new CSharpCodeProvider().CreateCompiler();
After this I can go on and create a class and add it runtime to a dll.
Similarly, I want to point to a xsd and create a dynamic class and add it to a dll in run time. ( I know from command line I can do this using xsd.exe, but I want to avoid it.) Then I want to instantiate and object from the created class and populate it by reading the xml. Are there any classes in .NET that can do this?
Is this even possible?
|