Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
 

Get rid of XmlInclude when using XmlSerializer

By , 1 Aug 2011

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

29 Jul 2011  
Bob Sandberg
 
How would you do this, if objects included inside one of the serialized objects was an abstract class? E.g.:abstract class Base{ public int x;}class A : Base{ public int y;}class B : A{ public int z;}class SomeOtherClass{ public string...
29 Jul 2011  
Yoel Schejter 3 alternatives  
 
A solution presented in C# .NET 3.5 using the latest in LINQ technology.
17 Nov 2011  
Gusdor
 
The above solution made me grin as it helped me solved my serialization puzzle. However, if you have an extensible format with components spread over multiple assemblies, this solution may not pick up all the types.I brute force it as follows:List knownTypes = new...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Daniel Gidman
Architect Stackify
United States United States
No Biography provided
Follow on   Twitter   Google+

| | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 1 Aug 2011
Article Copyright 2011 by Daniel Gidman
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid