public abstract partial class Switch
{
protected Switch(string displayName, string? description) { }
- protected Switch(string displayName, string? description, string? defaultSwitchValue) { }
+ protected Switch(string displayName, string? description, string defaultSwitchValue) { }
public System.Collections.Specialized.StringDictionary Attributes { get { throw null; } }
public string Description { get { throw null; } }
public string DisplayName { get { throw null; } }
private volatile bool _initialized;
private bool _initializing;
private volatile string _switchValueString = string.Empty;
- private readonly string? _defaultValue;
+ private readonly string _defaultValue;
private object? _initializedLock;
private static readonly List<WeakReference<Switch>> s_switches = new List<WeakReference<Switch>>();
{
}
- protected Switch(string displayName, string? description, string? defaultSwitchValue)
+ protected Switch(string displayName, string? description, string defaultSwitchValue)
{
// displayName is used as a hashtable key, so it can never
// be null.
// called again, we don't want to get caught in an infinite loop.
_initializing = true;
- _switchValueString = _defaultValue!;
+ _switchValueString = _defaultValue;
OnValueChanged();
_initialized = true;
_initializing = false;