The XmlSerializer enables you to control how objects are encoded into XML, it has a number of constructors. If you use any of the constructors other than the one that takes a type then a new temporary assembly is created EVERY TIME you create a serializer, rather than only once. It allows you to serializeand deserialize objects into and from XML documents. It enables youto control how objects are encoded into XML. The class constructoraccepts the object type to serialize.
The list of XmlSerializer members are given below:
- XmlSerializer
- XmlSerializer(Type)
- XmlSerializer(XmlTypeMapping)
- XmlSerializer(Type, String)
- XmlSerializer(Type, Type())
- XmlSerializer(Type, XmlAttributeOverrides)
- XmlSerializer(Type, XmlRootAttribute)
- XmlSerializer(Type, XmlAttributeOverrides, Type(), XmlRootAttribute, String)
- XmlSerializer(Type, XmlAttributeOverrides, Type(), XmlRootAttribute, String, String)
- XmlSerializer(Type, XmlAttributeOverrides, Type(), XmlRootAttribute, String, String, Evidence)
Example


Join the conversation! Your thoughts help the community grow.