System.Diagnostics

The System.Diagnostics namespace was designed to contain classes that allow a program to do profiling, performance monitoring, and error logging. However, these sorts of features depend critically on the implementation of a particular operating system. Since the Standard describes objects that should be common to all operating systems, and diagnostic objects by their very nature can't be, it contains only one class. The operating system for which you actually write code will probably provide many more classes in this namespace, but these will vary widely from one operating system to another.

The common class is called ConditionalAttribute, which derives from System.Attribute. As with all attributes, it represents a read-only ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library 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.