2 // System.Diagnostics.Switch.cs
4 // Comments from John R. Hicks <angryjohn69@nc.rr.com> original implementation
5 // can be found at: /mcs/docs/apidocs/xml/en/System.Diagnostics
8 // John R. Hicks (angryjohn69@nc.rr.com)
13 namespace System.Diagnostics
15 public abstract class Switch
17 private string desc = "";
18 private string display_name = "";
21 // ================= Constructors ===================
22 protected Switch(string displayName, string description)
24 display_name = displayName;
32 // ================ Instance Methods ================
34 // ==================== Properties ==================
36 public string Description {
40 public string DisplayName {
41 get {return display_name;}
44 protected int SwitchSetting {
47 if(iSwitch != value) {
49 OnSwitchSettingChanged();
55 protected virtual void OnSwitchSettingChanged()