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_webclient => GetResourceString("net_webclient");
15
16 internal static string net_webclient_ContentType => GetResourceString("net_webclient_ContentType");
17
18 internal static string net_webclient_Multipart => GetResourceString("net_webclient_Multipart");
19
20 internal static string net_webclient_no_concurrent_io_allowed => GetResourceString("net_webclient_no_concurrent_io_allowed");
21
22 internal static string net_webclient_invalid_baseaddress => GetResourceString("net_webclient_invalid_baseaddress");
23
24 internal static string net_webstatus_MessageLengthLimitExceeded => GetResourceString("net_webstatus_MessageLengthLimitExceeded");
25
26 private static bool UsingResourceKeys()
27 {
29 }
30
31 internal static string GetResourceString(string resourceKey)
32 {
34 {
35 return resourceKey;
36 }
37 string result = null;
38 try
39 {
40 result = ResourceManager.GetString(resourceKey);
41 }
43 {
44 }
45 return result;
46 }
47}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string net_webclient
Definition SR.cs:14
static ResourceManager s_resourceManager
Definition SR.cs:10
static string net_webclient_ContentType
Definition SR.cs:16
static string net_webclient_Multipart
Definition SR.cs:18
static ResourceManager ResourceManager
Definition SR.cs:12
static string net_webclient_invalid_baseaddress
Definition SR.cs:22
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:26
static string net_webstatus_MessageLengthLimitExceeded
Definition SR.cs:24
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string net_webclient_no_concurrent_io_allowed
Definition SR.cs:20