Chapter 5. Using Specialized .NET Types

This chapter is about specialized .NET types used to debug and diagnose problems, unit test your code, support multiple languages and cultures, and access features and applications outside of .NET.

This chapter covers the following topics:

  • Debugging and diagnostics
  • Unit testing an application
  • Internationalizing an application
  • Interoperating with unmanaged code

Debugging and diagnostics

In this section, you will learn how to debug problems at design time, trace problems at runtime, and use types such as Debug, Trace, Process, and Stopwatch that are in the System.Diagnostics namespace.

Debugging an application

In Visual Studio, press Ctrl + Shift + N or navigate to File | New | Project….

In the New Project dialog, from ...

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.