diff options
author | Alex Perovich <alperovi@microsoft.com> | 2017-03-21 14:55:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 14:55:39 -0500 |
commit | 12ef04c22b07f1e4ec5a63009298e4537a2c8e1a (patch) | |
tree | c70018c97d8437060d94803bb76eaf0c8090a695 /src/mscorlib/src/System/Runtime/GcSettings.cs | |
parent | e21d073e5e2b1d258cfef9111656d46884b242e7 (diff) | |
download | coreclr-12ef04c22b07f1e4ec5a63009298e4537a2c8e1a.tar.gz coreclr-12ef04c22b07f1e4ec5a63009298e4537a2c8e1a.tar.bz2 coreclr-12ef04c22b07f1e4ec5a63009298e4537a2c8e1a.zip |
Switch coreclr corelib to use resx (#10268)
* Switch to resx
* Use roslyn rewriter to switch from GetResourceString to SR
* More GetResourceString changes
* Add missing resource
* Remove Environment.GetResourceString and replace final usages with SR
* Remove comment
* Fix spacing
* Replace final instances of Environment.GetResourceString
* Add another missing resource
* Add back Environment.GetResourceStringLocal because the runtime needs it
Diffstat (limited to 'src/mscorlib/src/System/Runtime/GcSettings.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/GcSettings.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mscorlib/src/System/Runtime/GcSettings.cs b/src/mscorlib/src/System/Runtime/GcSettings.cs index 834307190b..993a24f986 100644 --- a/src/mscorlib/src/System/Runtime/GcSettings.cs +++ b/src/mscorlib/src/System/Runtime/GcSettings.cs @@ -50,7 +50,7 @@ namespace System.Runtime { if ((value < GCLatencyMode.Batch) || (value > GCLatencyMode.SustainedLowLatency)) { - throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum")); + throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_Enum); } Contract.EndContractBlock(); @@ -72,7 +72,7 @@ namespace System.Runtime if ((value < GCLargeObjectHeapCompactionMode.Default) || (value > GCLargeObjectHeapCompactionMode.CompactOnce)) { - throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum")); + throw new ArgumentOutOfRangeException(SR.ArgumentOutOfRange_Enum); } Contract.EndContractBlock(); |