Summary
In this chapter, you learned another way of saving objects to the hard drive—using serialization. Then, you learned the process of rebuilding an object from the hard drive—deserialization. You created a serializable
class, added features to the class, defined the path for saving a file, made a Person
object, wrote code to handle unmanaged resources, made a binary formatter, serialized an object, and tested your program.
In the next chapter, you will take a look at working with images at the pixel level. We will invert the colors and change that around.