2 // System.Diagnostics.Switch.cs
5 // John R. Hicks (angryjohn69@nc.rr.com)
10 namespace System.Diagnostics
13 /// Abstract base class to create new debugging and tracing switches
15 public abstract class Switch
17 private string desc = "";
18 private string display_name = "";
21 // ================= Constructors ===================
23 /// Initialize a new instance
25 protected Switch(string displayName, string description)
27 display_name = displayName;
32 /// Allows an Object to attempt to free resources and
33 /// perform cleanup before the Object is reclaimed
34 /// by the Garbage Collector
40 // ================ Instance Methods ================
42 // ==================== Properties ==================
45 /// Returns a description of the switch
47 public string Description
56 /// Returns a name used to identify the switch
58 public string DisplayName
67 /// Gets or sets the current setting for this switch
69 protected int SwitchSetting
80 OnSwitchSettingChanged();
86 /// Raises the SwitchSettingChanged event
89 protected virtual void OnSwitchSettingChanged()