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 ArgumentOutOfRange_NeedValidPipeAccessRights => GetResourceString("ArgumentOutOfRange_NeedValidPipeAccessRights");
17
18 internal static string Argument_NeedNonemptyPipeName => GetResourceString("Argument_NeedNonemptyPipeName");
19
20 internal static string Argument_NonContainerInvalidAnyFlag => GetResourceString("Argument_NonContainerInvalidAnyFlag");
21
22 internal static string Argument_EmptyServerName => GetResourceString("Argument_EmptyServerName");
23
24 internal static string Argument_InvalidHandle => GetResourceString("Argument_InvalidHandle");
25
26 internal static string ArgumentNull_ServerName => GetResourceString("ArgumentNull_ServerName");
27
28 internal static string ArgumentOutOfRange_AnonymousReserved => GetResourceString("ArgumentOutOfRange_AnonymousReserved");
29
30 internal static string ArgumentOutOfRange_TransmissionModeByteOrMsg => GetResourceString("ArgumentOutOfRange_TransmissionModeByteOrMsg");
31
32 internal static string ArgumentOutOfRange_DirectionModeInOutOrInOut => GetResourceString("ArgumentOutOfRange_DirectionModeInOutOrInOut");
33
34 internal static string ArgumentOutOfRange_ImpersonationInvalid => GetResourceString("ArgumentOutOfRange_ImpersonationInvalid");
35
36 internal static string ArgumentOutOfRange_OptionsInvalid => GetResourceString("ArgumentOutOfRange_OptionsInvalid");
37
38 internal static string ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable => GetResourceString("ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable");
39
40 internal static string ArgumentOutOfRange_InvalidTimeout => GetResourceString("ArgumentOutOfRange_InvalidTimeout");
41
42 internal static string ArgumentOutOfRange_MaxNumServerInstances => GetResourceString("ArgumentOutOfRange_MaxNumServerInstances");
43
44 internal static string InvalidOperation_PipeNotYetConnected => GetResourceString("InvalidOperation_PipeNotYetConnected");
45
46 internal static string InvalidOperation_PipeDisconnected => GetResourceString("InvalidOperation_PipeDisconnected");
47
48 internal static string InvalidOperation_PipeHandleNotSet => GetResourceString("InvalidOperation_PipeHandleNotSet");
49
50 internal static string InvalidOperation_PipeReadModeNotMessage => GetResourceString("InvalidOperation_PipeReadModeNotMessage");
51
52 internal static string InvalidOperation_PipeAlreadyConnected => GetResourceString("InvalidOperation_PipeAlreadyConnected");
53
54 internal static string InvalidOperation_PipeAlreadyDisconnected => GetResourceString("InvalidOperation_PipeAlreadyDisconnected");
55
56 internal static string IO_EOF_ReadBeyondEOF => GetResourceString("IO_EOF_ReadBeyondEOF");
57
58 internal static string IO_FileNotFound => GetResourceString("IO_FileNotFound");
59
60 internal static string IO_FileNotFound_FileName => GetResourceString("IO_FileNotFound_FileName");
61
62 internal static string IO_AlreadyExists_Name => GetResourceString("IO_AlreadyExists_Name");
63
64 internal static string IO_FileExists_Name => GetResourceString("IO_FileExists_Name");
65
66 internal static string IO_IO_PipeBroken => GetResourceString("IO_IO_PipeBroken");
67
68 internal static string IO_OperationAborted_Unexpected => GetResourceString("IO_OperationAborted_Unexpected");
69
70 internal static string IO_SharingViolation_File => GetResourceString("IO_SharingViolation_File");
71
72 internal static string IO_SharingViolation_NoFileName => GetResourceString("IO_SharingViolation_NoFileName");
73
74 internal static string IO_PipeBroken => GetResourceString("IO_PipeBroken");
75
76 internal static string IO_InvalidPipeHandle => GetResourceString("IO_InvalidPipeHandle");
77
78 internal static string IO_PathNotFound_Path => GetResourceString("IO_PathNotFound_Path");
79
80 internal static string IO_PathNotFound_NoPathName => GetResourceString("IO_PathNotFound_NoPathName");
81
82 internal static string IO_PathTooLong => GetResourceString("IO_PathTooLong");
83
84 internal static string NotSupported_UnreadableStream => GetResourceString("NotSupported_UnreadableStream");
85
86 internal static string NotSupported_UnseekableStream => GetResourceString("NotSupported_UnseekableStream");
87
88 internal static string NotSupported_UnwritableStream => GetResourceString("NotSupported_UnwritableStream");
89
90 internal static string NotSupported_AnonymousPipeUnidirectional => GetResourceString("NotSupported_AnonymousPipeUnidirectional");
91
92 internal static string NotSupported_AnonymousPipeMessagesNotSupported => GetResourceString("NotSupported_AnonymousPipeMessagesNotSupported");
93
94 internal static string ObjectDisposed_PipeClosed => GetResourceString("ObjectDisposed_PipeClosed");
95
96 internal static string UnauthorizedAccess_IODenied_Path => GetResourceString("UnauthorizedAccess_IODenied_Path");
97
98 internal static string UnauthorizedAccess_IODenied_NoPathName => GetResourceString("UnauthorizedAccess_IODenied_NoPathName");
99
100 internal static string IO_PathTooLong_Path => GetResourceString("IO_PathTooLong_Path");
101
102 internal static string UnauthorizedAccess_NotOwnedByCurrentUser => GetResourceString("UnauthorizedAccess_NotOwnedByCurrentUser");
103
104 internal static string NotSupported_PipeSecurityIsCurrentUserOnly => GetResourceString("NotSupported_PipeSecurityIsCurrentUserOnly");
105
106 private static bool UsingResourceKeys()
107 {
108 return s_usingResourceKeys;
109 }
110
111 internal static string GetResourceString(string resourceKey)
112 {
113 if (UsingResourceKeys())
114 {
115 return resourceKey;
116 }
117 string result = null;
118 try
119 {
120 result = ResourceManager.GetString(resourceKey);
121 }
123 {
124 }
125 return result;
126 }
127
128 internal static string Format(string resourceFormat, object p1)
129 {
130 if (UsingResourceKeys())
131 {
132 return string.Join(", ", resourceFormat, p1);
133 }
134 return string.Format(resourceFormat, p1);
135 }
136}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string InvalidOperation_PipeReadModeNotMessage
Definition SR.cs:50
static string IO_FileExists_Name
Definition SR.cs:36
static string IO_PathTooLong
Definition SR.cs:46
static string ArgumentOutOfRange_OptionsInvalid
Definition SR.cs:36
static string NotSupported_AnonymousPipeMessagesNotSupported
Definition SR.cs:92
static string ArgumentOutOfRange_ImpersonationInvalid
Definition SR.cs:34
static string Argument_EmptyServerName
Definition SR.cs:22
static string IO_AlreadyExists_Name
Definition SR.cs:34
static ResourceManager s_resourceManager
Definition SR.cs:10
static string ArgumentOutOfRange_MaxNumServerInstances
Definition SR.cs:42
static string IO_EOF_ReadBeyondEOF
Definition SR.cs:56
static string IO_InvalidPipeHandle
Definition SR.cs:76
static string NotSupported_PipeSecurityIsCurrentUserOnly
Definition SR.cs:104
static string Format(string resourceFormat, object p1)
Definition SR.cs:128
static string ObjectDisposed_PipeClosed
Definition SR.cs:94
static string NotSupported_UnseekableStream
Definition SR.cs:26
static string ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable
Definition SR.cs:38
static string ArgumentOutOfRange_InvalidTimeout
Definition SR.cs:40
static string NotSupported_UnwritableStream
Definition SR.cs:30
static string InvalidOperation_PipeAlreadyDisconnected
Definition SR.cs:54
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 InvalidOperation_PipeAlreadyConnected
Definition SR.cs:52
static string IO_SharingViolation_NoFileName
Definition SR.cs:54
static string InvalidOperation_PipeHandleNotSet
Definition SR.cs:48
static string IO_PathNotFound_NoPathName
Definition SR.cs:42
static string IO_OperationAborted_Unexpected
Definition SR.cs:68
static string ArgumentNull_ServerName
Definition SR.cs:26
static string IO_FileNotFound
Definition SR.cs:38
static string IO_FileNotFound_FileName
Definition SR.cs:40
static string NotSupported_UnreadableStream
Definition SR.cs:32
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:106
static string ArgumentOutOfRange_TransmissionModeByteOrMsg
Definition SR.cs:30
static string Argument_InvalidHandle
Definition SR.cs:24
static string Argument_NeedNonemptyPipeName
Definition SR.cs:18
static string ArgumentOutOfRange_NeedValidPipeAccessRights
Definition SR.cs:16
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string InvalidOperation_PipeNotYetConnected
Definition SR.cs:44
static string IO_IO_PipeBroken
Definition SR.cs:66
static string ArgumentOutOfRange_AnonymousReserved
Definition SR.cs:28
static string IO_PipeBroken
Definition SR.cs:74
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
static string NotSupported_AnonymousPipeUnidirectional
Definition SR.cs:90
static string ArgumentOutOfRange_DirectionModeInOutOrInOut
Definition SR.cs:32
static string IO_PathTooLong_Path
Definition SR.cs:94
static string InvalidOperation_PipeDisconnected
Definition SR.cs:46
static string IO_PathNotFound_Path
Definition SR.cs:44
static string UnauthorizedAccess_IODenied_NoPathName
Definition SR.cs:48
static string Argument_NonContainerInvalidAnyFlag
Definition SR.cs:20
static string UnauthorizedAccess_NotOwnedByCurrentUser
Definition SR.cs:102