Are any of the .NET generic collections marked as IXmlSerializable? I've tried List<T> and Collection<T> but neither work out of the box.
Before I roll my own collection<T>, list<T>, or dictionary<T> class, I thought I'd check to see whether Microsoft had included something that does this already. It seems like basic functionality.
EDIT: By "rolling my own" I mean creating a class that inherits from a generic collection class and also implements IXmlSerializable. Here's one example: http://www.codeproject.com/KB/XML/IXmlSerializable.aspx. And here's another example: http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx.
I'm using the DataContractSerializer within a method whose signature looks like this:
public static Stream GetXmlStream(IXmlSerializable item)
The problem is that while there are many classes in the .NET framework that are serializable, not all of them have explicitly implement the IXmlSerializable interface.