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 OrderCannotBeNegative => GetResourceString("OrderCannotBeNegative");
15
16 private static bool UsingResourceKeys()
17 {
19 }
20
21 internal static string GetResourceString(string resourceKey)
22 {
24 {
25 return resourceKey;
26 }
27 string result = null;
28 try
29 {
30 result = ResourceManager.GetString(resourceKey);
31 }
33 {
34 }
35 return result;
36 }
37}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static ResourceManager s_resourceManager
Definition SR.cs:10
static ResourceManager ResourceManager
Definition SR.cs:12
static string OrderCannotBeNegative
Definition SR.cs:14
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:16
static readonly bool s_usingResourceKeys
Definition SR.cs:8