I would like to serialize an HashSet of IXmlSerializable objects, is HashSet xml serializable?
In my situation, I have the class User and a HashSet called Users. Can I avoid creating a Users class for serializing purposes?
I would liket o pass the hashset as a parameter to the xml serializer.
Is possible to deserialize the xml if it’s obtained as an http response? I were thinking about using a MemoryStream, are there other possibilities?
Yes, it is serializable to XML. Just try: