Chapter 10. Learning About Persistence

Your programs will probably need to read and/or write data to some type of storage device. That storage device might be a hard disk, USB drive, or even the network. The key concept is that you are taking information from memory and transferring it to some other location. Later, you will retrieve that information and use it to execute some task.

Taking data from memory and transferring it to another place is referred to as persistence. Most examples of persistence involve creating an object, and then saving that object via a file to the hard disk. However, reading and writing an object is not just saving data to the hard disk, even though that is often the result. Reading and writing data to the hard disk is ...

Get Beginning C# 2008: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.