Practice and explore

Test your knowledge and understanding by answering some questions, getting some hands-on practice, and exploring this chapter's topics with deeper research.

Exercise 10.1 – test your knowledge

Answer the following questions:

  1. What is the difference between using the File class and the FileInfo class?
  2. What is the difference between the ReadByte method and the Read method of a stream?
  3. When would you use StringReader, TextReader, and StreamReader classes?
  4. What does the DeflateStream type do?
  5. How many bytes per character does the UTF-8 encoding use?
  6. What is an object graph?
  7. What is the best serialization format to choose for minimizing space requirements?
  8. What is the best serialization format to choose for cross-platform compatibility?

Get C# 6 and .NET Core 1.0: Modern Cross-Platform Development 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.