Chapter 5
Working with Files, Streams, and Serialization
Section 6
Using XmlSerializer
From the name you probably guessed that theXmlSerializer serializes data into XML. It gives you more control over the XML structure of the serialized data. Typical real-world examples for using this serializer would be to maintain compatibility with XML web services. It is also an easy medium to use when transmitting data using some type of message queuing (such as MSMQ or RabbitMQ). - Create a Student class - Create a class for a subject - Serialize the subject object