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 BaseType_Cannot_Be_Sealed => GetResourceString("BaseType_Cannot_Be_Sealed");
15
16 internal static string BaseType_Must_Have_Default_Ctor => GetResourceString("BaseType_Must_Have_Default_Ctor");
17
18 internal static string InterfaceType_Must_Be_Interface => GetResourceString("InterfaceType_Must_Be_Interface");
19
20 internal static string BaseType_Cannot_Be_Abstract => GetResourceString("BaseType_Cannot_Be_Abstract");
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 BaseType_Cannot_Be_Abstract
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 InterfaceType_Must_Be_Interface
Definition SR.cs:18
static ResourceManager ResourceManager
Definition SR.cs:12
static string BaseType_Must_Have_Default_Ctor
Definition SR.cs:16
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
static string BaseType_Cannot_Be_Sealed
Definition SR.cs:14