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_headers_req => GetResourceString("net_headers_req");
15
16 internal static string net_headers_rsp => GetResourceString("net_headers_rsp");
17
18 internal static string net_emptyStringCall => GetResourceString("net_emptyStringCall");
19
20 internal static string net_WebHeaderInvalidControlChars => GetResourceString("net_WebHeaderInvalidControlChars");
21
22 internal static string net_WebHeaderInvalidCRLFChars => GetResourceString("net_WebHeaderInvalidCRLFChars");
23
24 internal static string net_WebHeaderInvalidHeaderChars => GetResourceString("net_WebHeaderInvalidHeaderChars");
25
26 internal static string net_WebHeaderMissingColon => GetResourceString("net_WebHeaderMissingColon");
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
50 internal static string Format(string resourceFormat, object p1)
51 {
53 {
54 return string.Join(", ", resourceFormat, p1);
55 }
56 return string.Format(resourceFormat, p1);
57 }
58}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string net_emptyStringCall
Definition SR.cs:18
static string net_WebHeaderMissingColon
Definition SR.cs:26
static ResourceManager s_resourceManager
Definition SR.cs:10
static string Format(string resourceFormat, object p1)
Definition SR.cs:50
static ResourceManager ResourceManager
Definition SR.cs:12
static string net_headers_rsp
Definition SR.cs:16
static string net_WebHeaderInvalidCRLFChars
Definition SR.cs:72
static string net_WebHeaderInvalidControlChars
Definition SR.cs:102
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 net_WebHeaderInvalidHeaderChars
Definition SR.cs:24
static string net_headers_req
Definition SR.cs:14