Practicing and exploring

Test your knowledge and understanding by answering some questions, get some hands-on practice, and explore with deeper research into topics of this chapter.

Exercise 4.1 – test your knowledge

Use the Web to answer the following questions:

  1. Does every assembly you create have a reference to the mscorlib.dll assembly?
  2. What is the maximum number of characters that can be stored in a string?
  3. When and why should you use a SecureString?
  4. When should you use a LinkedList?
  5. When should you use a SortedDictionary class rather than a SortedList class?
  6. Why should you not use the official standard for e-mail addresses to create a regular expression for validating a user's e-mail address?

Exercise 4.2 – practice regular expressions

Create a console ...

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.