Definition at line 2214 of file SR.cs.
2215 {
2216 if (
key.Length == 0)
2217 {
2219 }
2221 try
2222 {
2225 {
2227 {
2229 }
2231 string message =
$"Infinite recursion during resource lookup within {"System.
Private.
CoreLib"}. This may be a bug in {"System.
Private.
CoreLib"}, or potentially in certain extensibility points such as assembly resolve events or CultureInfo names. Resource name: {key}";
2232 Environment.FailFast(message);
2233 }
2235 {
2237 }
2239 {
2245 }
2249 return @
string ??
key;
2250 }
2251 catch
2252 {
2254 {
2257 }
2258 throw;
2259 }
2260 finally
2261 {
2263 {
2265 }
2266 }
2267 }
virtual ? string GetString(string name)
static void RunClassConstructor(QCallTypeHandle type)
static ResourceManager s_resourceManager
static bool _resourceManagerInited
static List< string > _currentlyLoading
static readonly object _lock
static int _infinitelyRecursingCount
static void Exit(object obj)
static void Enter(object obj)
References System.SR._currentlyLoading, System.SR._infinitelyRecursingCount, System.SR._lock, System.SR._resourceManagerInited, System.Threading.Monitor.Enter(), System.Threading.Monitor.Exit(), System.Environment.FailFast(), System.Resources.ResourceManager.GetString(), System.key, System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(), and System.SR.s_resourceManager.
Referenced by System.SR.GetResourceString().