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 Arg_EmptyOrNullArray => GetResourceString("Arg_EmptyOrNullArray");
15
16 internal static string Arg_EmptyOrNullString => GetResourceString("Arg_EmptyOrNullString");
17
18 internal static string Arg_EmptyOrNullString_Named => GetResourceString("Arg_EmptyOrNullString_Named");
19
20 internal static string Arg_EnumIllegalVal => GetResourceString("Arg_EnumIllegalVal");
21
22 internal static string Arg_InvalidHandle => GetResourceString("Arg_InvalidHandle");
23
24 internal static string Arg_InvalidType => GetResourceString("Arg_InvalidType");
25
26 internal static string Arg_OutOfRange_NeedNonNegNum => GetResourceString("Arg_OutOfRange_NeedNonNegNum");
27
28 internal static string Arg_RankMultiDimNotSupported => GetResourceString("Arg_RankMultiDimNotSupported");
29
30 internal static string Argument_InvalidFlag => GetResourceString("Argument_InvalidFlag");
31
32 internal static string Argument_InvalidNameType => GetResourceString("Argument_InvalidNameType");
33
34 internal static string Argument_InvalidOffLen => GetResourceString("Argument_InvalidOffLen");
35
36 internal static string Argument_InvalidOidValue => GetResourceString("Argument_InvalidOidValue");
37
38 internal static string ArgumentOutOfRange_Index => GetResourceString("ArgumentOutOfRange_Index");
39
40 internal static string Cryptography_Cert_AlreadyHasPrivateKey => GetResourceString("Cryptography_Cert_AlreadyHasPrivateKey");
41
42 internal static string Cryptography_CertReq_AlgorithmMustMatch => GetResourceString("Cryptography_CertReq_AlgorithmMustMatch");
43
44 internal static string Cryptography_CertReq_BasicConstraintsRequired => GetResourceString("Cryptography_CertReq_BasicConstraintsRequired");
45
46 internal static string Cryptography_CertReq_DatesReversed => GetResourceString("Cryptography_CertReq_DatesReversed");
47
48 internal static string Cryptography_CertReq_DuplicateExtension => GetResourceString("Cryptography_CertReq_DuplicateExtension");
49
50 internal static string Cryptography_CertReq_IssuerBasicConstraintsInvalid => GetResourceString("Cryptography_CertReq_IssuerBasicConstraintsInvalid");
51
52 internal static string Cryptography_CertReq_IssuerKeyUsageInvalid => GetResourceString("Cryptography_CertReq_IssuerKeyUsageInvalid");
53
54 internal static string Cryptography_CertReq_IssuerRequiresPrivateKey => GetResourceString("Cryptography_CertReq_IssuerRequiresPrivateKey");
55
56 internal static string Cryptography_CertReq_NotAfterNotNested => GetResourceString("Cryptography_CertReq_NotAfterNotNested");
57
58 internal static string Cryptography_CertReq_NotBeforeNotNested => GetResourceString("Cryptography_CertReq_NotBeforeNotNested");
59
60 internal static string Cryptography_CertReq_NoKeyProvided => GetResourceString("Cryptography_CertReq_NoKeyProvided");
61
62 internal static string Cryptography_CertReq_RSAPaddingRequired => GetResourceString("Cryptography_CertReq_RSAPaddingRequired");
63
64 internal static string Cryptography_ECC_NamedCurvesOnly => GetResourceString("Cryptography_ECC_NamedCurvesOnly");
65
66 internal static string Cryptography_Der_Invalid_Encoding => GetResourceString("Cryptography_Der_Invalid_Encoding");
67
68 internal static string Cryptography_HashAlgorithmNameNullOrEmpty => GetResourceString("Cryptography_HashAlgorithmNameNullOrEmpty");
69
70 internal static string Cryptography_InvalidContextHandle => GetResourceString("Cryptography_InvalidContextHandle");
71
72 internal static string Cryptography_InvalidHandle => GetResourceString("Cryptography_InvalidHandle");
73
74 internal static string Cryptography_InvalidPaddingMode => GetResourceString("Cryptography_InvalidPaddingMode");
75
76 internal static string Cryptography_InvalidStoreHandle => GetResourceString("Cryptography_InvalidStoreHandle");
77
78 internal static string Cryptography_CustomTrustCertsInSystemMode => GetResourceString("Cryptography_CustomTrustCertsInSystemMode");
79
80 internal static string Cryptography_InvalidTrustCertificate => GetResourceString("Cryptography_InvalidTrustCertificate");
81
82 internal static string Cryptography_Pfx_NoCertificates => GetResourceString("Cryptography_Pfx_NoCertificates");
83
84 internal static string Cryptography_PrivateKey_DoesNotMatch => GetResourceString("Cryptography_PrivateKey_DoesNotMatch");
85
86 internal static string Cryptography_PrivateKey_WrongAlgorithm => GetResourceString("Cryptography_PrivateKey_WrongAlgorithm");
87
88 internal static string Cryptography_UnknownHashAlgorithm => GetResourceString("Cryptography_UnknownHashAlgorithm");
89
90 internal static string Cryptography_UnknownKeyAlgorithm => GetResourceString("Cryptography_UnknownKeyAlgorithm");
91
92 internal static string Cryptography_X509_ExtensionMismatch => GetResourceString("Cryptography_X509_ExtensionMismatch");
93
94 internal static string Cryptography_X509_InvalidContentType => GetResourceString("Cryptography_X509_InvalidContentType");
95
96 internal static string Cryptography_X509_InvalidFindType => GetResourceString("Cryptography_X509_InvalidFindType");
97
98 internal static string Cryptography_X509_InvalidFindValue => GetResourceString("Cryptography_X509_InvalidFindValue");
99
100 internal static string Cryptography_X509_InvalidFlagCombination => GetResourceString("Cryptography_X509_InvalidFlagCombination");
101
102 internal static string Cryptography_X509_StoreNotOpen => GetResourceString("Cryptography_X509_StoreNotOpen");
103
104 internal static string Cryptography_X509_NoPemCertificate => GetResourceString("Cryptography_X509_NoPemCertificate");
105
106 internal static string Cryptography_X509_NoOrMismatchedPemKey => GetResourceString("Cryptography_X509_NoOrMismatchedPemKey");
107
108 internal static string InvalidOperation_EnumNotStarted => GetResourceString("InvalidOperation_EnumNotStarted");
109
110 internal static string NotSupported_ECDsa_Csp => GetResourceString("NotSupported_ECDsa_Csp");
111
112 internal static string NotSupported_ECDiffieHellman_Csp => GetResourceString("NotSupported_ECDiffieHellman_Csp");
113
114 internal static string NotSupported_KeyAlgorithm => GetResourceString("NotSupported_KeyAlgorithm");
115
116 internal static string NotSupported_ImmutableX509Certificate => GetResourceString("NotSupported_ImmutableX509Certificate");
117
118 internal static string Unknown_Error => GetResourceString("Unknown_Error");
119
120 internal static string Cryptography_Invalid_IA5String => GetResourceString("Cryptography_Invalid_IA5String");
121
122 private static bool UsingResourceKeys()
123 {
124 return s_usingResourceKeys;
125 }
126
127 internal static string GetResourceString(string resourceKey)
128 {
129 if (UsingResourceKeys())
130 {
131 return resourceKey;
132 }
133 string result = null;
134 try
135 {
136 result = ResourceManager.GetString(resourceKey);
137 }
139 {
140 }
141 return result;
142 }
143
144 internal static string Format(string resourceFormat, object p1)
145 {
146 if (UsingResourceKeys())
147 {
148 return string.Join(", ", resourceFormat, p1);
149 }
150 return string.Format(resourceFormat, p1);
151 }
152
153 internal static string Format(string resourceFormat, object p1, object p2)
154 {
155 if (UsingResourceKeys())
156 {
157 return string.Join(", ", resourceFormat, p1, p2);
158 }
159 return string.Format(resourceFormat, p1, p2);
160 }
161}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string ArgumentOutOfRange_Index
Definition SR.cs:30
static string Cryptography_X509_InvalidFindValue
Definition SR.cs:98
static string Cryptography_InvalidStoreHandle
Definition SR.cs:76
static string InvalidOperation_EnumNotStarted
Definition SR.cs:46
static string Arg_OutOfRange_NeedNonNegNum
Definition SR.cs:26
static string Cryptography_Der_Invalid_Encoding
Definition SR.cs:50
static string Cryptography_InvalidTrustCertificate
Definition SR.cs:80
static string Cryptography_Invalid_IA5String
Definition SR.cs:120
static string Unknown_Error
Definition SR.cs:118
static string Cryptography_UnknownHashAlgorithm
Definition SR.cs:152
static string Cryptography_CertReq_BasicConstraintsRequired
Definition SR.cs:44
static ResourceManager s_resourceManager
Definition SR.cs:10
static string Cryptography_CertReq_NotBeforeNotNested
Definition SR.cs:58
static string Arg_EmptyOrNullString_Named
Definition SR.cs:18
static string Cryptography_X509_NoOrMismatchedPemKey
Definition SR.cs:106
static string Arg_EnumIllegalVal
Definition SR.cs:144
static string Arg_InvalidHandle
Definition SR.cs:14
static string Cryptography_ECC_NamedCurvesOnly
Definition SR.cs:56
static string Format(string resourceFormat, object p1)
Definition SR.cs:144
static string Argument_InvalidFlag
Definition SR.cs:688
static string Format(string resourceFormat, object p1, object p2)
Definition SR.cs:153
static string Cryptography_Pfx_NoCertificates
Definition SR.cs:82
static string NotSupported_KeyAlgorithm
Definition SR.cs:114
static string Cryptography_CertReq_NoKeyProvided
Definition SR.cs:60
static string Cryptography_CertReq_AlgorithmMustMatch
Definition SR.cs:42
static string NotSupported_ImmutableX509Certificate
Definition SR.cs:116
static string Cryptography_CustomTrustCertsInSystemMode
Definition SR.cs:78
static string Cryptography_X509_InvalidContentType
Definition SR.cs:94
static string Cryptography_X509_InvalidFlagCombination
Definition SR.cs:100
static string Cryptography_InvalidContextHandle
Definition SR.cs:70
static ResourceManager ResourceManager
Definition SR.cs:12
static string Cryptography_X509_NoPemCertificate
Definition SR.cs:104
static string Cryptography_CertReq_IssuerBasicConstraintsInvalid
Definition SR.cs:50
static string Cryptography_X509_ExtensionMismatch
Definition SR.cs:92
static string NotSupported_ECDiffieHellman_Csp
Definition SR.cs:112
static string Argument_InvalidOidValue
Definition SR.cs:20
static string Arg_RankMultiDimNotSupported
Definition SR.cs:18
static string Arg_EmptyOrNullString
Definition SR.cs:16
static string Cryptography_CertReq_DuplicateExtension
Definition SR.cs:48
static string Cryptography_Cert_AlreadyHasPrivateKey
Definition SR.cs:40
static string Cryptography_InvalidHandle
Definition SR.cs:72
static string Cryptography_InvalidPaddingMode
Definition SR.cs:46
static string Cryptography_CertReq_IssuerKeyUsageInvalid
Definition SR.cs:52
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:122
static string Cryptography_X509_InvalidFindType
Definition SR.cs:96
static string Cryptography_X509_StoreNotOpen
Definition SR.cs:102
static string NotSupported_ECDsa_Csp
Definition SR.cs:110
static string Cryptography_UnknownKeyAlgorithm
Definition SR.cs:90
static string Cryptography_CertReq_RSAPaddingRequired
Definition SR.cs:62
static string Argument_InvalidOffLen
Definition SR.cs:22
static string Cryptography_PrivateKey_WrongAlgorithm
Definition SR.cs:86
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string Cryptography_CertReq_DatesReversed
Definition SR.cs:46
static string Cryptography_PrivateKey_DoesNotMatch
Definition SR.cs:84
static string Argument_InvalidNameType
Definition SR.cs:32
static string Arg_InvalidType
Definition SR.cs:24
static string Cryptography_CertReq_NotAfterNotNested
Definition SR.cs:56
static string Cryptography_CertReq_IssuerRequiresPrivateKey
Definition SR.cs:54
static string Arg_EmptyOrNullArray
Definition SR.cs:14
static string Cryptography_HashAlgorithmNameNullOrEmpty
Definition SR.cs:60