13.9. Exercises

  1. How might you change the code in Listing 13-5 so it would not show inactive records?

  2. Looking at the information in Table 13-5, could you use any of the FileInfo class properties or methods in the getRecordCount() method shown in Listing 13-6?

  3. If you are designing a program that must persist a specific set of information, how would you decide whether to use sequential or random access files?

  4. Which approach would you use to persist the state of an object to disk: serialization, or standard read/write methods of your own design?

  5. Many program use an About box to convey information about the software (version number, company name, etc.) How would you add an About box to your programs?

Get Beginning C# 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.