<Rule Id="CA2100" Action="None" /> <!-- Review SQL queries for security vulnerabilities -->
<Rule Id="CA2101" Action="None" /> <!-- Specify marshaling for P/Invoke string arguments -->
<Rule Id="CA2119" Action="None" /> <!-- Seal methods that satisfy private interfaces -->
- <Rule Id="CA2207" Action="None" /> <!-- Initialize value type static fields inline -->
<Rule Id="CA2208" Action="None" /> <!-- Instantiate exception arguments correctly -->
<Rule Id="CA2211" Action="None" /> <!-- Non-constant fields should not be visible -->
<Rule Id="CA2213" Action="None" /> <!-- Disposable Fields should be disposed -->
private byte _mode;
- internal static OverrideModeSetting s_sectionDefault;
- internal static OverrideModeSetting s_locationDefault;
+ // Default for section is ALLOW
+ internal static readonly OverrideModeSetting s_sectionDefault = new OverrideModeSetting { _mode = (byte)OverrideMode.Allow };
- static OverrideModeSetting()
- {
- // Default for section is ALLOW
- s_sectionDefault = new OverrideModeSetting { _mode = (byte)OverrideMode.Allow };
-
- // Default for location tags is INHERIT. Note that we do not make the value as existent in the XML or specified by the API
- s_locationDefault = new OverrideModeSetting { _mode = (byte)OverrideMode.Inherit };
- }
+ // Default for location tags is INHERIT. Note that we do not make the value as existent in the XML or specified by the API
+ internal static readonly OverrideModeSetting s_locationDefault = new OverrideModeSetting { _mode = (byte)OverrideMode.Inherit };
internal static OverrideModeSetting CreateFromXmlReadValue(bool allowOverride)
{