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 IsolatedStorage_StoreNotOpen => GetResourceString("IsolatedStorage_StoreNotOpen");
15
16 internal static string IsolatedStorage_Operation_ISFS => GetResourceString("IsolatedStorage_Operation_ISFS");
17
18 internal static string IsolatedStorage_Path => GetResourceString("IsolatedStorage_Path");
19
20 internal static string IsolatedStorage_FileOpenMode => GetResourceString("IsolatedStorage_FileOpenMode");
21
22 internal static string IsolatedStorage_Operation => GetResourceString("IsolatedStorage_Operation");
23
24 internal static string IsolatedStorage_DeleteFile => GetResourceString("IsolatedStorage_DeleteFile");
25
26 internal static string IsolatedStorage_CreateDirectory => GetResourceString("IsolatedStorage_CreateDirectory");
27
28 internal static string IsolatedStorage_DeleteDirectory => GetResourceString("IsolatedStorage_DeleteDirectory");
29
30 internal static string IsolatedStorage_Exception => GetResourceString("IsolatedStorage_Exception");
31
32 internal static string IsolatedStorage_Init => GetResourceString("IsolatedStorage_Init");
33
34 internal static string IsolatedStorage_QuotaIsUndefined => GetResourceString("IsolatedStorage_QuotaIsUndefined");
35
36 internal static string IsolatedStorage_NotValidOnDesktop => GetResourceString("IsolatedStorage_NotValidOnDesktop");
37
38 internal static string Argument_EmptyPath => GetResourceString("Argument_EmptyPath");
39
40 internal static string PathNotFound_Path => GetResourceString("PathNotFound_Path");
41
42 internal static string IsolatedStorage_ApplicationUndefined => GetResourceString("IsolatedStorage_ApplicationUndefined");
43
44 internal static string IsolatedStorage_AssemblyUndefined => GetResourceString("IsolatedStorage_AssemblyUndefined");
45
46 internal static string IsolatedStorage_CurrentSizeUndefined => GetResourceString("IsolatedStorage_CurrentSizeUndefined");
47
48 internal static string IsolatedStorage_DeleteDirectories => GetResourceString("IsolatedStorage_DeleteDirectories");
49
50 internal static string IsolatedStorage_Scope_Invalid => GetResourceString("IsolatedStorage_Scope_Invalid");
51
52 internal static string IsolatedStorage_Scope_U_R_M => GetResourceString("IsolatedStorage_Scope_U_R_M");
53
54 internal static string PlatformNotSupported_CAS => GetResourceString("PlatformNotSupported_CAS");
55
56 private static bool UsingResourceKeys()
57 {
59 }
60
61 internal static string GetResourceString(string resourceKey)
62 {
64 {
65 return resourceKey;
66 }
67 string result = null;
68 try
69 {
70 result = ResourceManager.GetString(resourceKey);
71 }
73 {
74 }
75 return result;
76 }
77
78 internal static string Format(string resourceFormat, object p1)
79 {
81 {
82 return string.Join(", ", resourceFormat, p1);
83 }
84 return string.Format(resourceFormat, p1);
85 }
86}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string IsolatedStorage_Scope_U_R_M
Definition SR.cs:52
static string IsolatedStorage_DeleteDirectory
Definition SR.cs:28
static string IsolatedStorage_NotValidOnDesktop
Definition SR.cs:36
static string IsolatedStorage_DeleteFile
Definition SR.cs:24
static string IsolatedStorage_QuotaIsUndefined
Definition SR.cs:34
static string IsolatedStorage_AssemblyUndefined
Definition SR.cs:44
static ResourceManager s_resourceManager
Definition SR.cs:10
static string PlatformNotSupported_CAS
Definition SR.cs:54
static string IsolatedStorage_Exception
Definition SR.cs:30
static string IsolatedStorage_Path
Definition SR.cs:18
static string Format(string resourceFormat, object p1)
Definition SR.cs:78
static string IsolatedStorage_CurrentSizeUndefined
Definition SR.cs:46
static ResourceManager ResourceManager
Definition SR.cs:12
static string IsolatedStorage_ApplicationUndefined
Definition SR.cs:42
static string IsolatedStorage_CreateDirectory
Definition SR.cs:26
static string IsolatedStorage_StoreNotOpen
Definition SR.cs:14
static string Argument_EmptyPath
Definition SR.cs:38
static string IsolatedStorage_DeleteDirectories
Definition SR.cs:48
static string IsolatedStorage_Operation
Definition SR.cs:22
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:56
static string PathNotFound_Path
Definition SR.cs:40
static string IsolatedStorage_Scope_Invalid
Definition SR.cs:50
static string IsolatedStorage_Init
Definition SR.cs:32
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string IsolatedStorage_Operation_ISFS
Definition SR.cs:16
static string IsolatedStorage_FileOpenMode
Definition SR.cs:20