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 net_proxyschemenotsupported => GetResourceString("net_proxyschemenotsupported");
15
16 internal static string net_securityprotocolnotsupported => GetResourceString("net_securityprotocolnotsupported");
17
18 private static bool UsingResourceKeys()
19 {
21 }
22
23 internal static string GetResourceString(string resourceKey)
24 {
26 {
27 return resourceKey;
28 }
29 string result = null;
30 try
31 {
32 result = ResourceManager.GetString(resourceKey);
33 }
35 {
36 }
37 return result;
38 }
39
40 internal static string Format(string resourceFormat, object p1)
41 {
43 {
44 return string.Join(", ", resourceFormat, p1);
45 }
46 return string.Format(resourceFormat, p1);
47 }
48}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string net_securityprotocolnotsupported
Definition SR.cs:16
static string net_proxyschemenotsupported
Definition SR.cs:14
static ResourceManager s_resourceManager
Definition SR.cs:10
static string Format(string resourceFormat, object p1)
Definition SR.cs:40
static ResourceManager ResourceManager
Definition SR.cs:12
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:18
static readonly bool s_usingResourceKeys
Definition SR.cs:8