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 Async_NullDelegate => GetResourceString("Async_NullDelegate");
15
16 internal static string Async_OperationAlreadyCompleted => GetResourceString("Async_OperationAlreadyCompleted");
17
18 internal static string Async_OperationCancelled => GetResourceString("Async_OperationCancelled");
19
20 internal static string Async_ExceptionOccurred => GetResourceString("Async_ExceptionOccurred");
21
22 internal static string BackgroundWorker_WorkerAlreadyRunning => GetResourceString("BackgroundWorker_WorkerAlreadyRunning");
23
24 internal static string BackgroundWorker_WorkerDoesntReportProgress => GetResourceString("BackgroundWorker_WorkerDoesntReportProgress");
25
26 internal static string BackgroundWorker_WorkerDoesntSupportCancellation => GetResourceString("BackgroundWorker_WorkerDoesntSupportCancellation");
27
28 private static bool UsingResourceKeys()
29 {
31 }
32
33 internal static string GetResourceString(string resourceKey)
34 {
36 {
37 return resourceKey;
38 }
39 string result = null;
40 try
41 {
42 result = ResourceManager.GetString(resourceKey);
43 }
45 {
46 }
47 return result;
48 }
49}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string Async_OperationAlreadyCompleted
Definition SR.cs:16
static ResourceManager s_resourceManager
Definition SR.cs:10
static string BackgroundWorker_WorkerDoesntReportProgress
Definition SR.cs:24
static string BackgroundWorker_WorkerAlreadyRunning
Definition SR.cs:22
static ResourceManager ResourceManager
Definition SR.cs:12
static string Async_ExceptionOccurred
Definition SR.cs:20
static string BackgroundWorker_WorkerDoesntSupportCancellation
Definition SR.cs:26
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:28
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string Async_OperationCancelled
Definition SR.cs:18
static string Async_NullDelegate
Definition SR.cs:14