System\Configuration\ConfigurationProperty.cs (14)
18private ConfigurationPropertyOptions _options;
24ConstructorInit(name, type, ConfigurationPropertyOptions.None, null, null, null);
39: this(name, type, defaultValue, ConfigurationPropertyOptions.None)
42public ConfigurationProperty(string name, Type type, object defaultValue, ConfigurationPropertyOptions options)
51ConfigurationPropertyOptions options)
60ConfigurationPropertyOptions options,
186public bool IsRequired => (_options & ConfigurationPropertyOptions.IsRequired) != 0;
188public bool IsKey => (_options & ConfigurationPropertyOptions.IsKey) != 0;
190public bool IsDefaultCollection => (_options & ConfigurationPropertyOptions.IsDefaultCollection) != 0;
193=> (_options & ConfigurationPropertyOptions.IsTypeStringTransformationRequired) != 0;
196=> (_options & ConfigurationPropertyOptions.IsAssemblyStringTransformationRequired) != 0;
198public bool IsVersionCheckRequired => (_options & ConfigurationPropertyOptions.IsVersionCheckRequired) != 0;
220ConfigurationPropertyOptions options,
234if (((options & ConfigurationPropertyOptions.IsDefaultCollection) != 0) && string.IsNullOrEmpty(name))
System\Diagnostics\SourceElementsCollection.cs (5)
36private static readonly ConfigurationProperty _propName = new("name", typeof(string), "", ConfigurationPropertyOptions.IsRequired);
37private static readonly ConfigurationProperty _propSwitchName = new("switchName", typeof(string), null, ConfigurationPropertyOptions.None);
38private static readonly ConfigurationProperty _propSwitchValue = new("switchValue", typeof(string), null, ConfigurationPropertyOptions.None);
39private static readonly ConfigurationProperty _propSwitchType = new("switchType", typeof(string), null, ConfigurationPropertyOptions.None);
40private static readonly ConfigurationProperty _propListeners = new("listeners", typeof(ListenerElementsCollection), new ListenerElementsCollection(), ConfigurationPropertyOptions.None);
System\Diagnostics\SystemDiagnosticsSection.cs (4)
11private static readonly ConfigurationProperty s_propSources = new("sources", typeof(SourceElementsCollection), new SourceElementsCollection(), ConfigurationPropertyOptions.None);
12private static readonly ConfigurationProperty s_propSharedListeners = new("sharedListeners", typeof(SharedListenerElementsCollection), new SharedListenerElementsCollection(), ConfigurationPropertyOptions.None);
13private static readonly ConfigurationProperty s_propSwitches = new("switches", typeof(SwitchElementsCollection), new SwitchElementsCollection(), ConfigurationPropertyOptions.None);
14private static readonly ConfigurationProperty s_propTrace = new("trace", typeof(TraceSection), new TraceSection(), ConfigurationPropertyOptions.None);
System\Diagnostics\TraceSection.cs (4)
11private static readonly ConfigurationProperty s_propListeners = new("listeners", typeof(ListenerElementsCollection), null, ConfigurationPropertyOptions.None);
12private static readonly ConfigurationProperty s_propAutoFlush = new("autoflush", typeof(bool), false, ConfigurationPropertyOptions.None);
13private static readonly ConfigurationProperty s_propIndentSize = new("indentsize", typeof(int), 4, ConfigurationPropertyOptions.None);
14private static readonly ConfigurationProperty s_propUseGlobalLock = new("useGlobalLock", typeof(bool), true, ConfigurationPropertyOptions.None);