Click here to Skip to main content
12,253,990 members (64,309 online)
Click here to Skip to main content
Articles » Languages » C# » General » Alternatives
Add your own
alternative version

Tagged as

Stats

2.8K views
Posted

Get rid of XmlInclude when using XmlSerializer

, 1 Aug 2011 CPOL
Serializable Extra Types for .NET 4[^]Does what you are looking for using attributes.

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)

Share

About the Author

Daniel Gidman
Architect Stackify
United States United States
No Biography provided

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