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_MethodNotImplementedException => GetResourceString("net_MethodNotImplementedException");
15
16 internal static string net_PropertyNotImplementedException => GetResourceString("net_PropertyNotImplementedException");
17
18 internal static string net_bad_mac_address => GetResourceString("net_bad_mac_address");
19
20 internal static string net_collection_readonly => GetResourceString("net_collection_readonly");
21
22 private static bool UsingResourceKeys()
23 {
25 }
26
27 internal static string GetResourceString(string resourceKey)
28 {
30 {
31 return resourceKey;
32 }
33 string result = null;
34 try
35 {
36 result = ResourceManager.GetString(resourceKey);
37 }
39 {
40 }
41 return result;
42 }
43
44 internal static string Format(string resourceFormat, object p1)
45 {
47 {
48 return string.Join(", ", resourceFormat, p1);
49 }
50 return string.Format(resourceFormat, p1);
51 }
52}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string net_collection_readonly
Definition SR.cs:20
static ResourceManager s_resourceManager
Definition SR.cs:10
static string Format(string resourceFormat, object p1)
Definition SR.cs:44
static string net_MethodNotImplementedException
Definition SR.cs:22
static string net_bad_mac_address
Definition SR.cs:18
static ResourceManager ResourceManager
Definition SR.cs:12
static string net_PropertyNotImplementedException
Definition SR.cs:80
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:22
static readonly bool s_usingResourceKeys
Definition SR.cs:8