Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SR.cs
Go to the documentation of this file.
3
4namespace System;
5
6internal static class SR
7{
8 private static readonly bool s_usingResourceKeys = AppContext.TryGetSwitch("System.Resources.UseSystemResourceKeys", out var isEnabled) && isEnabled;
9
11
13
14 internal static string Parallel_Invoke_ActionNull => GetResourceString("Parallel_Invoke_ActionNull");
15
16 internal static string Parallel_ForEach_OrderedPartitionerKeysNotNormalized => GetResourceString("Parallel_ForEach_OrderedPartitionerKeysNotNormalized");
17
18 internal static string Parallel_ForEach_PartitionerNotDynamic => GetResourceString("Parallel_ForEach_PartitionerNotDynamic");
19
20 internal static string Parallel_ForEach_PartitionerReturnedNull => GetResourceString("Parallel_ForEach_PartitionerReturnedNull");
21
22 internal static string Parallel_ForEach_NullEnumerator => GetResourceString("Parallel_ForEach_NullEnumerator");
23
24 internal static string ParallelState_Break_InvalidOperationException_BreakAfterStop => GetResourceString("ParallelState_Break_InvalidOperationException_BreakAfterStop");
25
26 internal static string ParallelState_Stop_InvalidOperationException_StopAfterBreak => GetResourceString("ParallelState_Stop_InvalidOperationException_StopAfterBreak");
27
28 internal static string ParallelState_NotSupportedException_UnsupportedMethod => GetResourceString("ParallelState_NotSupportedException_UnsupportedMethod");
29
30 private static bool UsingResourceKeys()
31 {
33 }
34
35 internal static string GetResourceString(string resourceKey)
36 {
38 {
39 return resourceKey;
40 }
41 string result = null;
42 try
43 {
44 result = ResourceManager.GetString(resourceKey);
45 }
47 {
48 }
49 return result;
50 }
51}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string Parallel_Invoke_ActionNull
Definition SR.cs:14
static string Parallel_ForEach_NullEnumerator
Definition SR.cs:22
static string Parallel_ForEach_PartitionerNotDynamic
Definition SR.cs:18
static ResourceManager s_resourceManager
Definition SR.cs:10
static ResourceManager ResourceManager
Definition SR.cs:12
static string ParallelState_Break_InvalidOperationException_BreakAfterStop
Definition SR.cs:24
static string ParallelState_Stop_InvalidOperationException_StopAfterBreak
Definition SR.cs:26
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:30
static string Parallel_ForEach_OrderedPartitionerKeysNotNormalized
Definition SR.cs:16
static string ParallelState_NotSupportedException_UnsupportedMethod
Definition SR.cs:28
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string Parallel_ForEach_PartitionerReturnedNull
Definition SR.cs:20