Originally Posted by George2
Thanks Shuja,
Some further questions after study.
1.
You mean CLR will create a new assembly (DLL/EXE) for each type I need to serialize, other than using existing CLR assembly (e.g. System.XML.dll)?
For example, when I want to serialize type Foo, CLR will create something like FooSerialize.dll?
2.
The additional dynamically created assembly will be deleted when I unload the Appdomain? And next time when I run my assembly again, each of the dynamically created assemblies will be created again?
3.
My assembly will invoke the dynamically created assemblies to do serialize/deserialize?
4.
I think the following line of code is not necessary, agree? :-)
XmlSerializer s = new XmlSerializer(typeof(MyClass), myRoot);
regards,
George