¡@

Home 

c# Programming Glossary: alist

How to add XmlInclude attribute dynamically

http://stackoverflow.com/questions/2689566/how-to-add-xmlinclude-attribute-dynamically

I have the following classes XmlRoot public class AList public List B ListOfBs get set public class B public string.. Main public static void Main string args var aList new AList aList.ListOfBs new List B var c new C BaseProperty Base SomeProperty.. SomeProperty Some aList.ListOfBs.Add c var type typeof AList var serializer new XmlSerializer type TextWriter w new StringWriter..