Practice and explore
Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore this chapter's topics with deeper research.
Exercise 10.1 - test your knowledge
Answer the following questions:
- What is the difference between using the
File
class and theFileInfo
class? - What is the difference between the
ReadByte
method and theRead
method of a stream? - When would you use the
StringReader
,TextReader
, andStreamReader
classes? - What does the
DeflateStream
type do? - How many bytes per character does the UTF-8 encoding use?
- What is an object graph?
- What is the best serialization format to choose for minimizing space requirements?
- What is the best serialization format to choose for cross-platform compatibility?
Exercise ...
Get C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition 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.