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 AccessControl_InvalidHandle => GetResourceString("AccessControl_InvalidHandle");
15
16 internal static string Arg_MustBeIdentityReferenceType => GetResourceString("Arg_MustBeIdentityReferenceType");
17
18 internal static string Argument_InvalidEnumValue => GetResourceString("Argument_InvalidEnumValue");
19
20 internal static string Argument_InvalidName => GetResourceString("Argument_InvalidName");
21
22 internal static string ArgumentOutOfRange_Enum => GetResourceString("ArgumentOutOfRange_Enum");
23
24 internal static string ObjectDisposed_FileClosed => GetResourceString("ObjectDisposed_FileClosed");
25
26 internal static string TypeUnrecognized_AccessControl => GetResourceString("TypeUnrecognized_AccessControl");
27
28 internal static string InvalidOperation_RemoveFail => GetResourceString("InvalidOperation_RemoveFail");
29
30 internal static string IO_AlreadyExists_Name => GetResourceString("IO_AlreadyExists_Name");
31
32 internal static string IO_FileExists_Name => GetResourceString("IO_FileExists_Name");
33
34 internal static string IO_FileNotFound => GetResourceString("IO_FileNotFound");
35
36 internal static string IO_FileNotFound_FileName => GetResourceString("IO_FileNotFound_FileName");
37
38 internal static string IO_PathNotFound_NoPathName => GetResourceString("IO_PathNotFound_NoPathName");
39
40 internal static string IO_PathNotFound_Path => GetResourceString("IO_PathNotFound_Path");
41
42 internal static string IO_PathTooLong => GetResourceString("IO_PathTooLong");
43
44 internal static string IO_PathTooLong_Path => GetResourceString("IO_PathTooLong_Path");
45
46 internal static string IO_SharingViolation_File => GetResourceString("IO_SharingViolation_File");
47
48 internal static string IO_SharingViolation_NoFileName => GetResourceString("IO_SharingViolation_NoFileName");
49
50 internal static string UnauthorizedAccess_IODenied_NoPathName => GetResourceString("UnauthorizedAccess_IODenied_NoPathName");
51
52 internal static string UnauthorizedAccess_IODenied_Path => GetResourceString("UnauthorizedAccess_IODenied_Path");
53
54 internal static string Arg_PathEmpty => GetResourceString("Arg_PathEmpty");
55
56 internal static string ArgumentOutOfRange_NeedPosNum => GetResourceString("ArgumentOutOfRange_NeedPosNum");
57
58 internal static string Argument_InvalidFileModeAndFileSystemRightsCombo => GetResourceString("Argument_InvalidFileModeAndFileSystemRightsCombo");
59
60 private static bool UsingResourceKeys()
61 {
63 }
64
65 internal static string GetResourceString(string resourceKey)
66 {
68 {
69 return resourceKey;
70 }
71 string result = null;
72 try
73 {
74 result = ResourceManager.GetString(resourceKey);
75 }
77 {
78 }
79 return result;
80 }
81
82 internal static string Format(string resourceFormat, object p1)
83 {
85 {
86 return string.Join(", ", resourceFormat, p1);
87 }
88 return string.Format(resourceFormat, p1);
89 }
90
91 internal static string Format(string resourceFormat, object p1, object p2)
92 {
94 {
95 return string.Join(", ", resourceFormat, p1, p2);
96 }
97 return string.Format(resourceFormat, p1, p2);
98 }
99}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string IO_FileExists_Name
Definition SR.cs:36
static string IO_PathTooLong
Definition SR.cs:46
static string Argument_InvalidFileModeAndFileSystemRightsCombo
Definition SR.cs:58
static string ArgumentOutOfRange_NeedPosNum
Definition SR.cs:20
static string Arg_MustBeIdentityReferenceType
Definition SR.cs:16
static string IO_AlreadyExists_Name
Definition SR.cs:34
static ResourceManager s_resourceManager
Definition SR.cs:10
static string ArgumentOutOfRange_Enum
Definition SR.cs:18
static string Format(string resourceFormat, object p1)
Definition SR.cs:82
static string Argument_InvalidName
Definition SR.cs:20
static string Format(string resourceFormat, object p1, object p2)
Definition SR.cs:91
static ResourceManager ResourceManager
Definition SR.cs:12
static string IO_SharingViolation_File
Definition SR.cs:52
static string UnauthorizedAccess_IODenied_Path
Definition SR.cs:50
static string AccessControl_InvalidHandle
Definition SR.cs:14
static string IO_SharingViolation_NoFileName
Definition SR.cs:54
static string IO_PathNotFound_NoPathName
Definition SR.cs:42
static string IO_FileNotFound
Definition SR.cs:38
static string IO_FileNotFound_FileName
Definition SR.cs:40
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:60
static string Arg_PathEmpty
Definition SR.cs:54
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string TypeUnrecognized_AccessControl
Definition SR.cs:26
static string Argument_InvalidEnumValue
Definition SR.cs:18
static string InvalidOperation_RemoveFail
Definition SR.cs:28
static string IO_PathTooLong_Path
Definition SR.cs:94
static string ObjectDisposed_FileClosed
Definition SR.cs:28
static string IO_PathNotFound_Path
Definition SR.cs:44
static string UnauthorizedAccess_IODenied_NoPathName
Definition SR.cs:48