15.12. Summary

In this chapter, you've learned

  • How we approach file I/O in C#, using the FileStream, StreamReader, and StreamWriter classes of the System.IO namespace

  • An approach for parsing tab-delimited ASCII records to initialize an object's state, or a collection of objects, using the String.Split method

  • A means of persisting an object's state in an ASCII file

  • How to prepare a "test scaffold" Main method for testing isolated classes

  • How proper encapsulation streamlines client code (for example, the SRS Main method)

We're also getting quite an opportunity to apply the C# language skills that we covered in earlier chapters. We encourage you to work with the SRS code and to attempt some of the exercises that follow, to reinforce your learning experience. ...

Get Beginning C# 2008 Objects: From Concept to Code 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.