IXmlSerializable interface fully available in .NET 2.0August 31, 2005
The .NET 1.1 framework internally uses the IXmlSerializable interface for custom XML serialisation of certain classes. In fact the only class that I can come up with is the DataSet class (and all classes derived from the DataSet class). The following description is issued by the MSDN documentation:
This type supports the .NET Framework infrastructure and is not intended to be used directly from your code.
You can use it, but there are some problems with it. Apparently, when a class implements the IXmlSerializable interface, the XmlRootAttribute attribute cannot be applied to that class.
I just discovered that in .NET 2.0 this class is fully functional and can be used in conjunction with the XmlRootAttribute interface.
Isn’t life great with the upcoming .NET Framework 2.0!
If you're interested in an in-person or online course that teaches you and your team how to write maintainable unit tests and get the most out of TDD practices, make sure to have a look at our trainings and workshops or contact us at email@example.com.
Jan Van Ryswyck
Thank you for visiting my blog. I’m a professional software developer since Y2K. A blogger since Y2K+5. Provider of training and coaching in XP practices. Curator of the Awesome Talks list. Past organizer of the European Virtual ALT.NET meetings. Thinking and learning about all kinds of technologies since forever.
Writing MaintainableWatch Now
- Behavior-Driven Development
- Concurrent Programming
- Continuous Integration
- Core Skills
- Design Patterns
- Domain-Driven Design
- Event Sourcing
- Fluent Interfaces
- Functional Programming
- Object-Relational Mapping
- Open Source
- Software Design
- Test-Driven Development
- Visual Studio
The opinions expressed on this blog are my own personal opinions. These do NOT represent anyone else’s view on the world in any way whatsoever.
Thank you for visiting my website. I’m a professional software developer since Y2K. A blogger since Y2K+5. Provider of training and coaching in XP practices. Curator of the Awesome Talks list. Past organizer of the European Virtual ALT.NET meetings. Thinking and learning about all kinds of technologies since forever.