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 Argument_Invalid_SafeHandleInvalidOrClosed => GetResourceString("Argument_Invalid_SafeHandleInvalidOrClosed");
17
18 internal static string Argument_InvalidOffLen => GetResourceString("Argument_InvalidOffLen");
19
20 internal static string Argument_InvalidValue => GetResourceString("Argument_InvalidValue");
21
22 internal static string ArgumentNull_Buffer => GetResourceString("ArgumentNull_Buffer");
23
24 internal static string Cryptography_AlgorithmNotSupported => GetResourceString("Cryptography_AlgorithmNotSupported");
25
26 internal static string Cryptography_AlgKdfRequiresChars => GetResourceString("Cryptography_AlgKdfRequiresChars");
27
28 internal static string Cryptography_ArgECDHKeySizeMismatch => GetResourceString("Cryptography_ArgECDHKeySizeMismatch");
29
30 internal static string Cryptography_ArgECDHRequiresECDHKey => GetResourceString("Cryptography_ArgECDHRequiresECDHKey");
31
32 internal static string Cryptography_TlsRequiresLabelAndSeed => GetResourceString("Cryptography_TlsRequiresLabelAndSeed");
33
34 internal static string Cryptography_ArgDSARequiresDSAKey => GetResourceString("Cryptography_ArgDSARequiresDSAKey");
35
36 internal static string Cryptography_ArgECDsaRequiresECDsaKey => GetResourceString("Cryptography_ArgECDsaRequiresECDsaKey");
37
38 internal static string Cryptography_ArgRSARequiresRSAKey => GetResourceString("Cryptography_ArgRSARequiresRSAKey");
39
40 internal static string Cryptography_CipherModeFeedbackNotSupported => GetResourceString("Cryptography_CipherModeFeedbackNotSupported");
41
42 internal static string Cryptography_CngKeyWrongAlgorithm => GetResourceString("Cryptography_CngKeyWrongAlgorithm");
43
44 internal static string Cryptography_Der_Invalid_Encoding => GetResourceString("Cryptography_Der_Invalid_Encoding");
45
46 internal static string Cryptography_Encryption_MessageTooLong => GetResourceString("Cryptography_Encryption_MessageTooLong");
47
48 internal static string Cryptography_HashAlgorithmNameNullOrEmpty => GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty");
49
50 internal static string Cryptography_InvalidAlgorithmGroup => GetResourceString("Cryptography_InvalidAlgorithmGroup");
51
52 internal static string Cryptography_InvalidAlgorithmName => GetResourceString("Cryptography_InvalidAlgorithmName");
53
54 internal static string Cryptography_InvalidCipherMode => GetResourceString("Cryptography_InvalidCipherMode");
55
56 internal static string Cryptography_InvalidDsaParameters_MissingFields => GetResourceString("Cryptography_InvalidDsaParameters_MissingFields");
57
58 internal static string Cryptography_InvalidDsaParameters_MismatchedPGY => GetResourceString("Cryptography_InvalidDsaParameters_MismatchedPGY");
59
60 internal static string Cryptography_InvalidDsaParameters_MismatchedQX => GetResourceString("Cryptography_InvalidDsaParameters_MismatchedQX");
61
62 internal static string Cryptography_InvalidDsaParameters_MismatchedPJ => GetResourceString("Cryptography_InvalidDsaParameters_MismatchedPJ");
63
64 internal static string Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey => GetResourceString("Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey");
65
66 internal static string Cryptography_InvalidDsaParameters_QRestriction_ShortKey => GetResourceString("Cryptography_InvalidDsaParameters_QRestriction_ShortKey");
67
68 internal static string Cryptography_InvalidDsaParameters_QRestriction_LargeKey => GetResourceString("Cryptography_InvalidDsaParameters_QRestriction_LargeKey");
69
70 internal static string Cryptography_CurveNotSupported => GetResourceString("Cryptography_CurveNotSupported");
71
72 internal static string Cryptography_InvalidCurveOid => GetResourceString("Cryptography_InvalidCurveOid");
73
74 internal static string Cryptography_InvalidIVSize => GetResourceString("Cryptography_InvalidIVSize");
75
76 internal static string Cryptography_InvalidKeyBlobFormat => GetResourceString("Cryptography_InvalidKeyBlobFormat");
77
78 internal static string Cryptography_InvalidKeySize => GetResourceString("Cryptography_InvalidKeySize");
79
80 internal static string Cryptography_InvalidPadding => GetResourceString("Cryptography_InvalidPadding");
81
82 internal static string Cryptography_InvalidProviderName => GetResourceString("Cryptography_InvalidProviderName");
83
84 internal static string Cryptography_InvalidRsaParameters => GetResourceString("Cryptography_InvalidRsaParameters");
85
86 internal static string Cryptography_KeyBlobParsingError => GetResourceString("Cryptography_KeyBlobParsingError");
87
88 internal static string Cryptography_KeyTooSmall => GetResourceString("Cryptography_KeyTooSmall");
89
90 internal static string Cryptography_OpenEphemeralKeyHandleWithoutEphemeralFlag => GetResourceString("Cryptography_OpenEphemeralKeyHandleWithoutEphemeralFlag");
91
92 internal static string Cryptography_OpenInvalidHandle => GetResourceString("Cryptography_OpenInvalidHandle");
93
94 internal static string Cryptography_MissingIV => GetResourceString("Cryptography_MissingIV");
95
96 internal static string Cryptography_MustTransformWholeBlock => GetResourceString("Cryptography_MustTransformWholeBlock");
97
98 internal static string Cryptography_NotValidPrivateKey => GetResourceString("Cryptography_NotValidPrivateKey");
99
100 internal static string Cryptography_NotValidPublicOrPrivateKey => GetResourceString("Cryptography_NotValidPublicOrPrivateKey");
101
102 internal static string Cryptography_PartialBlock => GetResourceString("Cryptography_PartialBlock");
103
104 internal static string Cryptography_RSA_DecryptWrongSize => GetResourceString("Cryptography_RSA_DecryptWrongSize");
105
106 internal static string Cryptography_Pkcs8_EncryptedReadFailed => GetResourceString("Cryptography_Pkcs8_EncryptedReadFailed");
107
108 internal static string Cryptography_SignHash_WrongSize => GetResourceString("Cryptography_SignHash_WrongSize");
109
110 internal static string Cryptography_UnsupportedPaddingMode => GetResourceString("Cryptography_UnsupportedPaddingMode");
111
112 internal static string Cryptography_TransformBeyondEndOfBuffer => GetResourceString("Cryptography_TransformBeyondEndOfBuffer");
113
114 internal static string Cryptography_UnexpectedTransformTruncation => GetResourceString("Cryptography_UnexpectedTransformTruncation");
115
116 internal static string Cryptography_UnknownAlgorithmIdentifier => GetResourceString("Cryptography_UnknownAlgorithmIdentifier");
117
118 internal static string Cryptography_UnknownHashAlgorithm => GetResourceString("Cryptography_UnknownHashAlgorithm");
119
120 internal static string Cryptography_UnknownPaddingMode => GetResourceString("Cryptography_UnknownPaddingMode");
121
122 internal static string Cryptography_WeakKey => GetResourceString("Cryptography_WeakKey");
123
124 internal static string Cryptography_ECC_NamedCurvesOnly => GetResourceString("Cryptography_ECC_NamedCurvesOnly");
125
126 internal static string Cryptography_CSP_NoPrivateKey => GetResourceString("Cryptography_CSP_NoPrivateKey");
127
128 internal static string Cryptography_InvalidECCharacteristic2Curve => GetResourceString("Cryptography_InvalidECCharacteristic2Curve");
129
130 internal static string Argument_DestinationTooShort => GetResourceString("Argument_DestinationTooShort");
131
132 internal static string Cryptography_FeedbackSizeNotSupported => GetResourceString("Cryptography_FeedbackSizeNotSupported");
133
134 private static bool UsingResourceKeys()
135 {
136 return s_usingResourceKeys;
137 }
138
139 internal static string GetResourceString(string resourceKey)
140 {
141 if (UsingResourceKeys())
142 {
143 return resourceKey;
144 }
145 string result = null;
146 try
147 {
148 result = ResourceManager.GetString(resourceKey);
149 }
151 {
152 }
153 return result;
154 }
155
156 internal static string Format(string resourceFormat, object p1)
157 {
158 if (UsingResourceKeys())
159 {
160 return string.Join(", ", resourceFormat, p1);
161 }
162 return string.Format(resourceFormat, p1);
163 }
164
165 internal static string Format(string resourceFormat, object p1, object p2)
166 {
167 if (UsingResourceKeys())
168 {
169 return string.Join(", ", resourceFormat, p1, p2);
170 }
171 return string.Format(resourceFormat, p1, p2);
172 }
173}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string Cryptography_TlsRequiresLabelAndSeed
Definition SR.cs:32
static string Cryptography_InvalidAlgorithmName
Definition SR.cs:52
static string Cryptography_ArgRSARequiresRSAKey
Definition SR.cs:38
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 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_InvalidKeyBlobFormat
Definition SR.cs:76
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_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_ArgDSARequiresDSAKey
Definition SR.cs:34
static string Cryptography_InvalidProviderName
Definition SR.cs:82
static string Cryptography_InvalidRsaParameters
Definition SR.cs:108
static string Cryptography_WeakKey
Definition SR.cs:122
static string Cryptography_ArgECDHRequiresECDHKey
Definition SR.cs:42
static string Cryptography_ECC_NamedCurvesOnly
Definition SR.cs:56
static string Format(string resourceFormat, object p1)
Definition SR.cs:156
static string Cryptography_NotValidPublicOrPrivateKey
Definition SR.cs:122
static string Format(string resourceFormat, object p1, object p2)
Definition SR.cs:165
static string Cryptography_UnknownPaddingMode
Definition SR.cs:154
static string Cryptography_UnsupportedPaddingMode
Definition SR.cs:160
static string Cryptography_CipherModeFeedbackNotSupported
Definition SR.cs:146
static string Cryptography_InvalidDsaParameters_MismatchedQX
Definition SR.cs:74
static string Cryptography_InvalidAlgorithmGroup
Definition SR.cs:50
static string Cryptography_CSP_NoPrivateKey
Definition SR.cs:48
static string Cryptography_ArgECDHKeySizeMismatch
Definition SR.cs:40
static string Cryptography_ArgECDsaRequiresECDsaKey
Definition SR.cs:36
static string Cryptography_UnexpectedTransformTruncation
Definition SR.cs:158
static string Cryptography_OpenEphemeralKeyHandleWithoutEphemeralFlag
Definition SR.cs:90
static ResourceManager ResourceManager
Definition SR.cs:12
static string Cryptography_SignHash_WrongSize
Definition SR.cs:142
static string Cryptography_OpenInvalidHandle
Definition SR.cs:92
static string Cryptography_InvalidECCharacteristic2Curve
Definition SR.cs:86
static string Cryptography_Pkcs8_EncryptedReadFailed
Definition SR.cs:126
static string Cryptography_InvalidDsaParameters_MismatchedPGY
Definition SR.cs:72
static string Cryptography_Encryption_MessageTooLong
Definition SR.cs:52
static string ArgumentNull_Buffer
Definition SR.cs:22
static string Argument_Invalid_SafeHandleInvalidOrClosed
Definition SR.cs:16
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:134
static string Cryptography_CngKeyWrongAlgorithm
Definition SR.cs:42
static string Cryptography_FeedbackSizeNotSupported
Definition SR.cs:176
static string Cryptography_InvalidCurveOid
Definition SR.cs:66
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_InvalidDsaParameters_SeedRestriction_ShortKey
Definition SR.cs:78
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60
static string Cryptography_InvalidCipherMode
Definition SR.cs:54
static string Cryptography_KeyBlobParsingError
Definition SR.cs:86
static string Cryptography_InvalidIVSize
Definition SR.cs:102