XML Serialize
-
Hi, I'm starting to read up on serializing my classes using XML, seems really useful but depending on which article I read opinions vary on whether ArrayLists can be serialized. Does anyone know for sure whether they can or can not? It seems as though it changed from 1.1 to 2.0, but I cant tell for sure. Thanks
-
Hi, I'm starting to read up on serializing my classes using XML, seems really useful but depending on which article I read opinions vary on whether ArrayLists can be serialized. Does anyone know for sure whether they can or can not? It seems as though it changed from 1.1 to 2.0, but I cant tell for sure. Thanks
It has changed from .NET 1.1 to .NET 2.0, as far as I know you can serialize List<T> in .NET 2.0 Another method is the mark the list with the [XmlElement] attribute, to make sure it gets serialized correctly.
WM. What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson My blog