System.Diagnostics (system.dll)class

This class provides a simple on/off switch for debugging and tracing. Consult Enabled to check if the switch has been set. You can configure a Boolean switch using the application configuration file (see Switch). To use a BooleanSwitch, you must enable tracing or debugging at compilation time.

public class BooleanSwitch : Switch {
// Public Constructors
   public BooleanSwitch(string displayName, string description);
// Public Instance Properties
   public bool Enabled{set; get; }


System.Object Switch BooleanSwitch

    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System

    Evaluation has ТСМОНР·Ъexpired.