diff options
Diffstat (limited to 'src/mscorlib/src/System/AppContext/AppContext.cs')
-rw-r--r-- | src/mscorlib/src/System/AppContext/AppContext.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mscorlib/src/System/AppContext/AppContext.cs b/src/mscorlib/src/System/AppContext/AppContext.cs index 5a3b732fa8..7c7e74f19b 100644 --- a/src/mscorlib/src/System/AppContext/AppContext.cs +++ b/src/mscorlib/src/System/AppContext/AppContext.cs @@ -35,7 +35,7 @@ namespace System { // The value of APP_CONTEXT_BASE_DIRECTORY key has to be a string and it is not allowed to be any other type. // Otherwise the caller will get invalid cast exception - return (string) AppDomain.CurrentDomain.GetData("APP_CONTEXT_BASE_DIRECTORY") ?? AppDomain.CurrentDomain.BaseDirectory; + return (string)AppDomain.CurrentDomain.GetData("APP_CONTEXT_BASE_DIRECTORY") ?? AppDomain.CurrentDomain.BaseDirectory; } } @@ -72,16 +72,16 @@ namespace System } public static event System.EventHandler<System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs> FirstChanceException - { - add - { - AppDomain.CurrentDomain.FirstChanceException += value; - } - remove - { - AppDomain.CurrentDomain.FirstChanceException -= value; - } - } + { + add + { + AppDomain.CurrentDomain.FirstChanceException += value; + } + remove + { + AppDomain.CurrentDomain.FirstChanceException -= value; + } + } public static event System.EventHandler ProcessExit; internal static event System.EventHandler Unloading; @@ -116,7 +116,7 @@ namespace System if (switchName == null) throw new ArgumentNullException(nameof(switchName)); if (switchName.Length == 0) - throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), nameof(switchName)); + throw new ArgumentException(SR.Argument_EmptyName, nameof(switchName)); // By default, the switch is not enabled. isEnabled = false; @@ -144,7 +144,7 @@ namespace System } // We get the value of isEnabled from the value that we stored in the dictionary - isEnabled = (switchValue & SwitchValueState.HasTrueValue) == SwitchValueState.HasTrueValue; + isEnabled = (switchValue & SwitchValueState.HasTrueValue) == SwitchValueState.HasTrueValue; // 2. The switch has a valid value AND we have checked for overrides if ((switchValue & SwitchValueState.HasLookedForOverride) == SwitchValueState.HasLookedForOverride) @@ -212,7 +212,7 @@ namespace System if (switchName == null) throw new ArgumentNullException(nameof(switchName)); if (switchName.Length == 0) - throw new ArgumentException(Environment.GetResourceString("Argument_EmptyName"), nameof(switchName)); + throw new ArgumentException(SR.Argument_EmptyName, nameof(switchName)); SwitchValueState switchValue = (isEnabled ? SwitchValueState.HasTrueValue : SwitchValueState.HasFalseValue) | SwitchValueState.HasLookedForOverride; |