BinaryFormatter: Binary serialization
Create a C# program to serialize and deserialize objects in binary format. To do this you can use the
BinaryFormatter class included in the
First implement a Person class with three properties (Name, Age and City). The City class will have two properties (Name and Population). Then create a person object and use the
BinaryFormatter object's serializer to save the data in a binary file, later deserialize the file and print it on screen. Remember to prepare a
ToString () method to print the Persona class.