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 ArgumentOutOfRange_NeedNonNegNum => GetResourceString("ArgumentOutOfRange_NeedNonNegNum");
15
16 internal static string IO_FileNotFound => GetResourceString("IO_FileNotFound");
17
18 internal static string IO_FileNotFound_FileName => GetResourceString("IO_FileNotFound_FileName");
19
20 internal static string IO_AlreadyExists_Name => GetResourceString("IO_AlreadyExists_Name");
21
22 internal static string IO_FileExists_Name => GetResourceString("IO_FileExists_Name");
23
24 internal static string IO_SharingViolation_File => GetResourceString("IO_SharingViolation_File");
25
26 internal static string IO_SharingViolation_NoFileName => GetResourceString("IO_SharingViolation_NoFileName");
27
28 internal static string IO_PathNotFound_Path => GetResourceString("IO_PathNotFound_Path");
29
30 internal static string IO_PathNotFound_NoPathName => GetResourceString("IO_PathNotFound_NoPathName");
31
32 internal static string IO_PathTooLong => GetResourceString("IO_PathTooLong");
33
34 internal static string UnauthorizedAccess_IODenied_Path => GetResourceString("UnauthorizedAccess_IODenied_Path");
35
36 internal static string UnauthorizedAccess_IODenied_NoPathName => GetResourceString("UnauthorizedAccess_IODenied_NoPathName");
37
38 internal static string Argument_MapNameEmptyString => GetResourceString("Argument_MapNameEmptyString");
39
40 internal static string Argument_EmptyFile => GetResourceString("Argument_EmptyFile");
41
42 internal static string Argument_NewMMFWriteAccessNotAllowed => GetResourceString("Argument_NewMMFWriteAccessNotAllowed");
43
44 internal static string Argument_ReadAccessWithLargeCapacity => GetResourceString("Argument_ReadAccessWithLargeCapacity");
45
46 internal static string Argument_NewMMFAppendModeNotAllowed => GetResourceString("Argument_NewMMFAppendModeNotAllowed");
47
48 internal static string Argument_NewMMFTruncateModeNotAllowed => GetResourceString("Argument_NewMMFTruncateModeNotAllowed");
49
50 internal static string ArgumentNull_MapName => GetResourceString("ArgumentNull_MapName");
51
52 internal static string ArgumentNull_FileStream => GetResourceString("ArgumentNull_FileStream");
53
54 internal static string ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed => GetResourceString("ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed");
55
56 internal static string ArgumentOutOfRange_NeedPositiveNumber => GetResourceString("ArgumentOutOfRange_NeedPositiveNumber");
57
58 internal static string ArgumentOutOfRange_PositiveOrDefaultCapacityRequired => GetResourceString("ArgumentOutOfRange_PositiveOrDefaultCapacityRequired");
59
60 internal static string ArgumentOutOfRange_PositiveOrDefaultSizeRequired => GetResourceString("ArgumentOutOfRange_PositiveOrDefaultSizeRequired");
61
62 internal static string ArgumentOutOfRange_CapacityGEFileSizeRequired => GetResourceString("ArgumentOutOfRange_CapacityGEFileSizeRequired");
63
64 internal static string IO_NotEnoughMemory => GetResourceString("IO_NotEnoughMemory");
65
66 internal static string InvalidOperation_CantCreateFileMapping => GetResourceString("InvalidOperation_CantCreateFileMapping");
67
68 internal static string NotSupported_MMViewStreamsFixedLength => GetResourceString("NotSupported_MMViewStreamsFixedLength");
69
70 internal static string ObjectDisposed_ViewAccessorClosed => GetResourceString("ObjectDisposed_ViewAccessorClosed");
71
72 internal static string ObjectDisposed_StreamIsClosed => GetResourceString("ObjectDisposed_StreamIsClosed");
73
74 internal static string IO_PathTooLong_Path => GetResourceString("IO_PathTooLong_Path");
75
76 private static bool UsingResourceKeys()
77 {
79 }
80
81 internal static string GetResourceString(string resourceKey)
82 {
84 {
85 return resourceKey;
86 }
87 string result = null;
88 try
89 {
90 result = ResourceManager.GetString(resourceKey);
91 }
93 {
94 }
95 return result;
96 }
97
98 internal static string Format(string resourceFormat, object p1)
99 {
100 if (UsingResourceKeys())
101 {
102 return string.Join(", ", resourceFormat, p1);
103 }
104 return string.Format(resourceFormat, p1);
105 }
106}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string InvalidOperation_CantCreateFileMapping
Definition SR.cs:66
static string IO_FileExists_Name
Definition SR.cs:36
static string IO_PathTooLong
Definition SR.cs:46
static string Argument_NewMMFWriteAccessNotAllowed
Definition SR.cs:42
static string Argument_ReadAccessWithLargeCapacity
Definition SR.cs:44
static string ArgumentNull_FileStream
Definition SR.cs:52
static string IO_AlreadyExists_Name
Definition SR.cs:34
static ResourceManager s_resourceManager
Definition SR.cs:10
static string ArgumentOutOfRange_PositiveOrDefaultSizeRequired
Definition SR.cs:60
static string Argument_NewMMFTruncateModeNotAllowed
Definition SR.cs:48
static string Format(string resourceFormat, object p1)
Definition SR.cs:98
static string Argument_MapNameEmptyString
Definition SR.cs:38
static string ArgumentOutOfRange_PositiveOrDefaultCapacityRequired
Definition SR.cs:58
static string IO_NotEnoughMemory
Definition SR.cs:64
static ResourceManager ResourceManager
Definition SR.cs:12
static string IO_SharingViolation_File
Definition SR.cs:52
static string ObjectDisposed_StreamIsClosed
Definition SR.cs:72
static string UnauthorizedAccess_IODenied_Path
Definition SR.cs:50
static string IO_SharingViolation_NoFileName
Definition SR.cs:54
static string IO_PathNotFound_NoPathName
Definition SR.cs:42
static string ArgumentOutOfRange_CapacityLargerThanLogicalAddressSpaceNotAllowed
Definition SR.cs:54
static string ArgumentNull_MapName
Definition SR.cs:50
static string IO_FileNotFound
Definition SR.cs:38
static string IO_FileNotFound_FileName
Definition SR.cs:40
static string Argument_NewMMFAppendModeNotAllowed
Definition SR.cs:46
static string ArgumentOutOfRange_CapacityGEFileSizeRequired
Definition SR.cs:62
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:76
static string ObjectDisposed_ViewAccessorClosed
Definition SR.cs:70
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
static string NotSupported_MMViewStreamsFixedLength
Definition SR.cs:68
static string ArgumentOutOfRange_NeedPositiveNumber
Definition SR.cs:56
static string IO_PathTooLong_Path
Definition SR.cs:94
static string Argument_EmptyFile
Definition SR.cs:40
static string IO_PathNotFound_Path
Definition SR.cs:44
static string UnauthorizedAccess_IODenied_NoPathName
Definition SR.cs:48