7 writes to _mode
System.Configuration (7)
System\Configuration\OverrideMode.cs (7)
65
SectionDefault.
_mode
= (byte)OverrideMode.Allow;
70
LocationDefault.
_mode
= (byte)OverrideMode.Inherit;
82
result.
_mode
|= XmlDefinedLegacy;
91
result.
_mode
|= XmlDefinedNewMode;
319
_mode
|= ApiDefinedNewMode;
354
_mode
|= ApiDefinedLegacy;
360
_mode
= (byte)mode;
25 references to _mode
System.Configuration (25)
System\Configuration\OverrideMode.cs (25)
138
if ((x.
_mode
& ApiDefinedAny) != 0) {
143
else if ((y.
_mode
& ApiDefinedAny) != 0) {
151
if ( ((x.
_mode
& XmlDefinedAny) != 0) ||
152
((y.
_mode
& XmlDefinedAny) != 0)) {
154
result = (x.
_mode
& XmlDefinedAny) == (y.
_mode
& XmlDefinedAny);
171
Debug.Assert((x.
_mode
& ApiDefinedAny) != 0);
176
if ((y.
_mode
& ApiDefinedAny) != 0) {
178
result = (x.
_mode
& ApiDefinedAny) == (y.
_mode
& ApiDefinedAny);
181
else if ((y.
_mode
& XmlDefinedAny) != 0) {
183
result = ( (((x.
_mode
& ApiDefinedLegacy) != 0) && ((y.
_mode
& XmlDefinedLegacy) != 0)) || // "x" was API changed in Legacy and "y" was XML defined in Legacy
184
(((x.
_mode
& ApiDefinedNewMode) != 0) && ((y.
_mode
& XmlDefinedNewMode) != 0))); // "x" was API changed in New and "y" was XML defined in New
218
((
_mode
& ApiDefinedAny) == 0) &&
219
((
_mode
& XmlDefinedAny) == 0);
239
if ((
_mode
& ApiDefinedAny) != 0) {
241
useLegacy = (
_mode
& ApiDefinedLegacy) != 0;
244
Debug.Assert(useLegacy || (
_mode
& ApiDefinedNewMode) != 0);
247
else if ((
_mode
& XmlDefinedAny) != 0) {
250
useLegacy = (
_mode
& XmlDefinedLegacy) != 0;
253
Debug.Assert(useLegacy || (
_mode
& XmlDefinedNewMode) != 0);
307
return (OverrideMode)(
_mode
& ModeMask);
367
byte current = (byte)(
_mode
& ApiDefinedAny); // Shows whats the current setting: 0 ( none ), ApiDefinedLegacy or ApiDefinedNew