diff options
Diffstat (limited to 'src/System.Private.CoreLib/Common/System/SR.cs')
-rw-r--r-- | src/System.Private.CoreLib/Common/System/SR.cs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/System.Private.CoreLib/Common/System/SR.cs b/src/System.Private.CoreLib/Common/System/SR.cs index da03e59c17..4c04be45c5 100644 --- a/src/System.Private.CoreLib/Common/System/SR.cs +++ b/src/System.Private.CoreLib/Common/System/SR.cs @@ -14,12 +14,6 @@ namespace System { internal static partial class SR { - private static ResourceManager? ResourceManager - { - get; - set; - } - // This method is used to decide if we need to append the exception message parameters to the message when calling SR.Format. // by default it returns false. [MethodImpl(MethodImplOptions.NoInlining)] @@ -121,10 +115,6 @@ namespace System _currentlyLoading.Add(key); // Push - if (ResourceManager == null) - { - ResourceManager = new ResourceManager(SR.ResourceType); - } string? s = ResourceManager.GetString(key, null); _currentlyLoading.RemoveAt(_currentlyLoading.Count - 1); // Pop @@ -136,7 +126,7 @@ namespace System if (lockTaken) { // Backout code - throw away potentially corrupt state - ResourceManager = null; + s_resourceManager = null; _currentlyLoading = null; } throw; |