View Single Post
  #1 (permalink)  
Old July 7th, 2008, 03:53 PM
vhrao vhrao is offline
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

Reply With Quote