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_NeedPosNum => GetResourceString("ArgumentOutOfRange_NeedPosNum");
17
18 internal static string Argument_DestinationTooShort => GetResourceString("Argument_DestinationTooShort");
19
20 internal static string Argument_InvalidRandomRange => GetResourceString("Argument_InvalidRandomRange");
21
22 internal static string Argument_InvalidOffLen => GetResourceString("Argument_InvalidOffLen");
23
24 internal static string Argument_InvalidValue => GetResourceString("Argument_InvalidValue");
25
26 internal static string ArgumentNull_Buffer => GetResourceString("ArgumentNull_Buffer");
27
28 internal static string Argument_PemImport_NoPemFound => GetResourceString("Argument_PemImport_NoPemFound");
29
30 internal static string Argument_PemImport_AmbiguousPem => GetResourceString("Argument_PemImport_AmbiguousPem");
31
32 internal static string Argument_PemImport_EncryptedPem => GetResourceString("Argument_PemImport_EncryptedPem");
33
34 internal static string Arg_CryptographyException => GetResourceString("Arg_CryptographyException");
35
36 internal static string Cryptography_AlgKdfRequiresChars => GetResourceString("Cryptography_AlgKdfRequiresChars");
37
38 internal static string Cryptography_AlgorithmNotSupported => GetResourceString("Cryptography_AlgorithmNotSupported");
39
40 internal static string Cryptography_ArgECDHKeySizeMismatch => GetResourceString("Cryptography_ArgECDHKeySizeMismatch");
41
42 internal static string Cryptography_ArgECDHRequiresECDHKey => GetResourceString("Cryptography_ArgECDHRequiresECDHKey");
43
44 internal static string Cryptography_AuthTagMismatch => GetResourceString("Cryptography_AuthTagMismatch");
45
46 internal static string Cryptography_Config_EncodedOIDError => GetResourceString("Cryptography_Config_EncodedOIDError");
47
48 internal static string Cryptography_CSP_NoPrivateKey => GetResourceString("Cryptography_CSP_NoPrivateKey");
49
50 internal static string Cryptography_Der_Invalid_Encoding => GetResourceString("Cryptography_Der_Invalid_Encoding");
51
52 internal static string Cryptography_Encryption_MessageTooLong => GetResourceString("Cryptography_Encryption_MessageTooLong");
53
54 internal static string Cryptography_ECXmlSerializationFormatRequired => GetResourceString("Cryptography_ECXmlSerializationFormatRequired");
55
56 internal static string Cryptography_ECC_NamedCurvesOnly => GetResourceString("Cryptography_ECC_NamedCurvesOnly");
57
58 internal static string Cryptography_FromXmlParseError => GetResourceString("Cryptography_FromXmlParseError");
59
60 internal static string Cryptography_HashAlgorithmNameNullOrEmpty => GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty");
61
62 internal static string Cryptography_InvalidOID => GetResourceString("Cryptography_InvalidOID");
63
64 internal static string Cryptography_CurveNotSupported => GetResourceString("Cryptography_CurveNotSupported");
65
66 internal static string Cryptography_InvalidCurveOid => GetResourceString("Cryptography_InvalidCurveOid");
67
68 internal static string Cryptography_InvalidCurveKeyParameters => GetResourceString("Cryptography_InvalidCurveKeyParameters");
69
70 internal static string Cryptography_InvalidDsaParameters_MissingFields => GetResourceString("Cryptography_InvalidDsaParameters_MissingFields");
71
72 internal static string Cryptography_InvalidDsaParameters_MismatchedPGY => GetResourceString("Cryptography_InvalidDsaParameters_MismatchedPGY");
73
74 internal static string Cryptography_InvalidDsaParameters_MismatchedQX => GetResourceString("Cryptography_InvalidDsaParameters_MismatchedQX");
75
76 internal static string Cryptography_InvalidDsaParameters_MismatchedPJ => GetResourceString("Cryptography_InvalidDsaParameters_MismatchedPJ");
77
78 internal static string Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey => GetResourceString("Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey");
79
80 internal static string Cryptography_InvalidDsaParameters_QRestriction_ShortKey => GetResourceString("Cryptography_InvalidDsaParameters_QRestriction_ShortKey");
81
82 internal static string Cryptography_InvalidDsaParameters_QRestriction_LargeKey => GetResourceString("Cryptography_InvalidDsaParameters_QRestriction_LargeKey");
83
84 internal static string Cryptography_InvalidFromXmlString => GetResourceString("Cryptography_InvalidFromXmlString");
85
86 internal static string Cryptography_InvalidECCharacteristic2Curve => GetResourceString("Cryptography_InvalidECCharacteristic2Curve");
87
88 internal static string Cryptography_InvalidECPrimeCurve => GetResourceString("Cryptography_InvalidECPrimeCurve");
89
90 internal static string Cryptography_InvalidECNamedCurve => GetResourceString("Cryptography_InvalidECNamedCurve");
91
92 internal static string Cryptography_InvalidKeySize => GetResourceString("Cryptography_InvalidKeySize");
93
94 internal static string Cryptography_InvalidKey_SemiWeak => GetResourceString("Cryptography_InvalidKey_SemiWeak");
95
96 internal static string Cryptography_InvalidKey_Weak => GetResourceString("Cryptography_InvalidKey_Weak");
97
98 internal static string Cryptography_InvalidNonceLength => GetResourceString("Cryptography_InvalidNonceLength");
99
100 internal static string Cryptography_InvalidTagLength => GetResourceString("Cryptography_InvalidTagLength");
101
102 internal static string Cryptography_InvalidIVSize => GetResourceString("Cryptography_InvalidIVSize");
103
104 internal static string Cryptography_InvalidOperation => GetResourceString("Cryptography_InvalidOperation");
105
106 internal static string Cryptography_InvalidPadding => GetResourceString("Cryptography_InvalidPadding");
107
108 internal static string Cryptography_InvalidRsaParameters => GetResourceString("Cryptography_InvalidRsaParameters");
109
110 internal static string Cryptography_KeyTooSmall => GetResourceString("Cryptography_KeyTooSmall");
111
112 internal static string Cryptography_MissingIV => GetResourceString("Cryptography_MissingIV");
113
114 internal static string Cryptography_MissingKey => GetResourceString("Cryptography_MissingKey");
115
116 internal static string Cryptography_MissingOID => GetResourceString("Cryptography_MissingOID");
117
118 internal static string Cryptography_MustTransformWholeBlock => GetResourceString("Cryptography_MustTransformWholeBlock");
119
120 internal static string Cryptography_NotValidPrivateKey => GetResourceString("Cryptography_NotValidPrivateKey");
121
122 internal static string Cryptography_NotValidPublicOrPrivateKey => GetResourceString("Cryptography_NotValidPublicOrPrivateKey");
123
124 internal static string Cryptography_PartialBlock => GetResourceString("Cryptography_PartialBlock");
125
126 internal static string Cryptography_Pkcs8_EncryptedReadFailed => GetResourceString("Cryptography_Pkcs8_EncryptedReadFailed");
127
128 internal static string Cryptography_PlaintextCiphertextLengthMismatch => GetResourceString("Cryptography_PlaintextCiphertextLengthMismatch");
129
130 internal static string Cryptography_RC2_EKS40 => GetResourceString("Cryptography_RC2_EKS40");
131
132 internal static string Cryptography_RC2_EKSKS => GetResourceString("Cryptography_RC2_EKSKS");
133
134 internal static string Cryptography_RC2_EKSKS2 => GetResourceString("Cryptography_RC2_EKSKS2");
135
136 internal static string Cryptography_Rijndael_BlockSize => GetResourceString("Cryptography_Rijndael_BlockSize");
137
138 internal static string Cryptography_RSA_DecryptWrongSize => GetResourceString("Cryptography_RSA_DecryptWrongSize");
139
140 internal static string Cryptography_RSAPrivateKey_VersionTooNew => GetResourceString("Cryptography_RSAPrivateKey_VersionTooNew");
141
142 internal static string Cryptography_SignHash_WrongSize => GetResourceString("Cryptography_SignHash_WrongSize");
143
144 internal static string Cryptography_TransformBeyondEndOfBuffer => GetResourceString("Cryptography_TransformBeyondEndOfBuffer");
145
146 internal static string Cryptography_CipherModeFeedbackNotSupported => GetResourceString("Cryptography_CipherModeFeedbackNotSupported");
147
148 internal static string Cryptography_CipherModeNotSupported => GetResourceString("Cryptography_CipherModeNotSupported");
149
150 internal static string Cryptography_UnknownAlgorithmIdentifier => GetResourceString("Cryptography_UnknownAlgorithmIdentifier");
151
152 internal static string Cryptography_UnknownHashAlgorithm => GetResourceString("Cryptography_UnknownHashAlgorithm");
153
154 internal static string Cryptography_UnknownPaddingMode => GetResourceString("Cryptography_UnknownPaddingMode");
155
156 internal static string Cryptography_UnknownSignatureFormat => GetResourceString("Cryptography_UnknownSignatureFormat");
157
158 internal static string Cryptography_UnexpectedTransformTruncation => GetResourceString("Cryptography_UnexpectedTransformTruncation");
159
160 internal static string Cryptography_UnsupportedPaddingMode => GetResourceString("Cryptography_UnsupportedPaddingMode");
161
162 internal static string NotSupported_Method => GetResourceString("NotSupported_Method");
163
164 internal static string NotSupported_SubclassOverride => GetResourceString("NotSupported_SubclassOverride");
165
166 internal static string Cryptography_AlgorithmTypesMustBeVisible => GetResourceString("Cryptography_AlgorithmTypesMustBeVisible");
167
168 internal static string Cryptography_AddNullOrEmptyName => GetResourceString("Cryptography_AddNullOrEmptyName");
169
170 internal static string Cryptography_Prk_TooSmall => GetResourceString("Cryptography_Prk_TooSmall");
171
172 internal static string Cryptography_Okm_TooLarge => GetResourceString("Cryptography_Okm_TooLarge");
173
174 internal static string Cryptography_ExceedKdfExtractLimit => GetResourceString("Cryptography_ExceedKdfExtractLimit");
175
176 internal static string Cryptography_FeedbackSizeNotSupported => GetResourceString("Cryptography_FeedbackSizeNotSupported");
177
178 private static bool UsingResourceKeys()
179 {
180 return s_usingResourceKeys;
181 }
182
183 internal static string GetResourceString(string resourceKey)
184 {
185 if (UsingResourceKeys())
186 {
187 return resourceKey;
188 }
189 string result = null;
190 try
191 {
192 result = ResourceManager.GetString(resourceKey);
193 }
195 {
196 }
197 return result;
198 }
199
200 internal static string Format(string resourceFormat, object p1)
201 {
202 if (UsingResourceKeys())
203 {
204 return string.Join(", ", resourceFormat, p1);
205 }
206 return string.Format(resourceFormat, p1);
207 }
208
209 internal static string Format(string resourceFormat, object p1, object p2)
210 {
211 if (UsingResourceKeys())
212 {
213 return string.Join(", ", resourceFormat, p1, p2);
214 }
215 return string.Format(resourceFormat, p1, p2);
216 }
217}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string Cryptography_TransformBeyondEndOfBuffer
Definition SR.cs:144
static string Cryptography_InvalidDsaParameters_MismatchedPJ
Definition SR.cs:76
static string Cryptography_NotValidPrivateKey
Definition SR.cs:120
static string ArgumentOutOfRange_NeedPosNum
Definition SR.cs:20
static string Cryptography_RSA_DecryptWrongSize
Definition SR.cs:138
static string Cryptography_InvalidDsaParameters_QRestriction_ShortKey
Definition SR.cs:80
static string Cryptography_MissingIV
Definition SR.cs:112
static string Cryptography_Der_Invalid_Encoding
Definition SR.cs:50
static string Cryptography_AlgorithmNotSupported
Definition SR.cs:38
static string Cryptography_MustTransformWholeBlock
Definition SR.cs:118
static string Argument_DestinationTooShort
Definition SR.cs:14
static string Cryptography_RC2_EKSKS2
Definition SR.cs:134
static string Cryptography_RSAPrivateKey_VersionTooNew
Definition SR.cs:140
static string Cryptography_ECXmlSerializationFormatRequired
Definition SR.cs:54
static string Cryptography_UnknownAlgorithmIdentifier
Definition SR.cs:150
static string Cryptography_UnknownHashAlgorithm
Definition SR.cs:152
static string Cryptography_AlgKdfRequiresChars
Definition SR.cs:36
static ResourceManager s_resourceManager
Definition SR.cs:10
static string Cryptography_KeyTooSmall
Definition SR.cs:110
static string Cryptography_CurveNotSupported
Definition SR.cs:64
static string Cryptography_InvalidDsaParameters_QRestriction_LargeKey
Definition SR.cs:82
static string Argument_InvalidValue
Definition SR.cs:24
static string Cryptography_AlgorithmTypesMustBeVisible
Definition SR.cs:166
static string Cryptography_RC2_EKSKS
Definition SR.cs:132
static string Cryptography_InvalidKey_SemiWeak
Definition SR.cs:94
static string Cryptography_InvalidOID
Definition SR.cs:62
static string Cryptography_InvalidRsaParameters
Definition SR.cs:108
static string Cryptography_InvalidNonceLength
Definition SR.cs:98
static string Cryptography_ArgECDHRequiresECDHKey
Definition SR.cs:42
static string Cryptography_InvalidOperation
Definition SR.cs:104
static string Cryptography_MissingOID
Definition SR.cs:116
static string Cryptography_ECC_NamedCurvesOnly
Definition SR.cs:56
static string Format(string resourceFormat, object p1)
Definition SR.cs:200
static string Cryptography_NotValidPublicOrPrivateKey
Definition SR.cs:122
static string Cryptography_Rijndael_BlockSize
Definition SR.cs:136
static string Cryptography_AuthTagMismatch
Definition SR.cs:44
static string Format(string resourceFormat, object p1, object p2)
Definition SR.cs:209
static string Cryptography_UnknownPaddingMode
Definition SR.cs:154
static string Cryptography_UnsupportedPaddingMode
Definition SR.cs:160
static string Cryptography_FromXmlParseError
Definition SR.cs:58
static string Cryptography_CipherModeFeedbackNotSupported
Definition SR.cs:146
static string Cryptography_InvalidDsaParameters_MismatchedQX
Definition SR.cs:74
static string Argument_PemImport_EncryptedPem
Definition SR.cs:32
static string Cryptography_CSP_NoPrivateKey
Definition SR.cs:48
static string Cryptography_Config_EncodedOIDError
Definition SR.cs:46
static string Cryptography_InvalidKey_Weak
Definition SR.cs:96
static string Cryptography_ArgECDHKeySizeMismatch
Definition SR.cs:40
static string Cryptography_InvalidECPrimeCurve
Definition SR.cs:88
static string Cryptography_UnknownSignatureFormat
Definition SR.cs:156
static string Cryptography_Prk_TooSmall
Definition SR.cs:170
static string Cryptography_UnexpectedTransformTruncation
Definition SR.cs:158
static string Cryptography_AddNullOrEmptyName
Definition SR.cs:168
static string Cryptography_MissingKey
Definition SR.cs:114
static string Argument_InvalidRandomRange
Definition SR.cs:20
static string NotSupported_Method
Definition SR.cs:162
static ResourceManager ResourceManager
Definition SR.cs:12
static string Cryptography_SignHash_WrongSize
Definition SR.cs:142
static string Cryptography_InvalidCurveKeyParameters
Definition SR.cs:68
static string Cryptography_InvalidECCharacteristic2Curve
Definition SR.cs:86
static string Argument_PemImport_NoPemFound
Definition SR.cs:28
static string Cryptography_InvalidECNamedCurve
Definition SR.cs:90
static string Cryptography_Pkcs8_EncryptedReadFailed
Definition SR.cs:126
static string Cryptography_ExceedKdfExtractLimit
Definition SR.cs:174
static string Cryptography_InvalidDsaParameters_MismatchedPGY
Definition SR.cs:72
static string Cryptography_PlaintextCiphertextLengthMismatch
Definition SR.cs:128
static string Cryptography_Encryption_MessageTooLong
Definition SR.cs:52
static string ArgumentNull_Buffer
Definition SR.cs:22
static string Arg_CryptographyException
Definition SR.cs:108
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static string Cryptography_Okm_TooLarge
Definition SR.cs:172
static string Argument_PemImport_AmbiguousPem
Definition SR.cs:30
static bool UsingResourceKeys()
Definition SR.cs:178
static string Cryptography_CipherModeNotSupported
Definition SR.cs:148
static string Cryptography_FeedbackSizeNotSupported
Definition SR.cs:176
static string Cryptography_InvalidCurveOid
Definition SR.cs:66
static string Cryptography_InvalidFromXmlString
Definition SR.cs:84
static string Argument_InvalidOffLen
Definition SR.cs:22
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string Cryptography_InvalidKeySize
Definition SR.cs:92
static string Cryptography_InvalidPadding
Definition SR.cs:106
static string Cryptography_InvalidDsaParameters_MissingFields
Definition SR.cs:70
static string Cryptography_PartialBlock
Definition SR.cs:124
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
static string Cryptography_InvalidTagLength
Definition SR.cs:100
static string Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey
Definition SR.cs:78
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
static string Cryptography_RC2_EKS40
Definition SR.cs:130
static string NotSupported_SubclassOverride
Definition SR.cs:1714
static string Cryptography_InvalidIVSize
Definition SR.cs:102