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_CryptographyException => GetResourceString("Arg_CryptographyException");
15
16 internal static string Argument_DestinationTooShort => GetResourceString("Argument_DestinationTooShort");
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 Argument_StreamNotReadable => GetResourceString("Argument_StreamNotReadable");
23
24 internal static string Argument_StreamNotWritable => GetResourceString("Argument_StreamNotWritable");
25
26 internal static string Argument_BitsMustBeWholeBytes => GetResourceString("Argument_BitsMustBeWholeBytes");
27
28 internal static string ArgumentOutOfRange_NeedNonNegNum => GetResourceString("ArgumentOutOfRange_NeedNonNegNum");
29
30 internal static string ArgumentOutOfRange_NeedPosNum => GetResourceString("ArgumentOutOfRange_NeedPosNum");
31
32 internal static string Cryptography_CryptoStream_FlushFinalBlockTwice => GetResourceString("Cryptography_CryptoStream_FlushFinalBlockTwice");
33
34 internal static string Cryptography_DefaultAlgorithm_NotSupported => GetResourceString("Cryptography_DefaultAlgorithm_NotSupported");
35
36 internal static string Cryptography_HashNotYetFinalized => GetResourceString("Cryptography_HashNotYetFinalized");
37
38 internal static string Cryptography_InvalidFeedbackSize => GetResourceString("Cryptography_InvalidFeedbackSize");
39
40 internal static string Cryptography_InvalidBlockSize => GetResourceString("Cryptography_InvalidBlockSize");
41
42 internal static string Cryptography_InvalidCipherMode => GetResourceString("Cryptography_InvalidCipherMode");
43
44 internal static string Cryptography_InvalidIVSize => GetResourceString("Cryptography_InvalidIVSize");
45
46 internal static string Cryptography_InvalidKeySize => GetResourceString("Cryptography_InvalidKeySize");
47
48 internal static string Cryptography_InvalidPaddingMode => GetResourceString("Cryptography_InvalidPaddingMode");
49
50 internal static string Cryptography_InvalidHashAlgorithmOid => GetResourceString("Cryptography_InvalidHashAlgorithmOid");
51
52 internal static string Cryptography_MatchBlockSize => GetResourceString("Cryptography_MatchBlockSize");
53
54 internal static string Cryptography_MatchFeedbackSize => GetResourceString("Cryptography_MatchFeedbackSize");
55
56 internal static string Cryptography_PlaintextTooLarge => GetResourceString("Cryptography_PlaintextTooLarge");
57
58 internal static string Cryptography_EncryptedIncorrectLength => GetResourceString("Cryptography_EncryptedIncorrectLength");
59
60 internal static string NotSupported_SubclassOverride => GetResourceString("NotSupported_SubclassOverride");
61
62 internal static string NotSupported_UnreadableStream => GetResourceString("NotSupported_UnreadableStream");
63
64 internal static string NotSupported_UnseekableStream => GetResourceString("NotSupported_UnseekableStream");
65
66 internal static string NotSupported_UnwritableStream => GetResourceString("NotSupported_UnwritableStream");
67
68 internal static string HashNameMultipleSetNotSupported => GetResourceString("HashNameMultipleSetNotSupported");
69
70 internal static string CryptoConfigNotSupported => GetResourceString("CryptoConfigNotSupported");
71
72 internal static string InvalidOperation_IncorrectImplementation => GetResourceString("InvalidOperation_IncorrectImplementation");
73
74 internal static string InvalidOperation_UnsupportedBlockSize => GetResourceString("InvalidOperation_UnsupportedBlockSize");
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_UnsupportedBlockSize
Definition SR.cs:74
static string ArgumentOutOfRange_NeedPosNum
Definition SR.cs:20
static string Cryptography_CryptoStream_FlushFinalBlockTwice
Definition SR.cs:32
static string Argument_DestinationTooShort
Definition SR.cs:14
static ResourceManager s_resourceManager
Definition SR.cs:10
static string Argument_InvalidValue
Definition SR.cs:24
static string Argument_StreamNotWritable
Definition SR.cs:878
static string Format(string resourceFormat, object p1)
Definition SR.cs:98
static string NotSupported_UnseekableStream
Definition SR.cs:26
static string Cryptography_HashNotYetFinalized
Definition SR.cs:36
static string Cryptography_EncryptedIncorrectLength
Definition SR.cs:58
static string NotSupported_UnwritableStream
Definition SR.cs:30
static string Argument_StreamNotReadable
Definition SR.cs:876
static ResourceManager ResourceManager
Definition SR.cs:12
static string Cryptography_MatchBlockSize
Definition SR.cs:52
static string Cryptography_DefaultAlgorithm_NotSupported
Definition SR.cs:34
static string Cryptography_PlaintextTooLarge
Definition SR.cs:56
static string Cryptography_InvalidBlockSize
Definition SR.cs:40
static string NotSupported_UnreadableStream
Definition SR.cs:32
static string InvalidOperation_IncorrectImplementation
Definition SR.cs:72
static string Cryptography_InvalidPaddingMode
Definition SR.cs:46
static string Cryptography_InvalidHashAlgorithmOid
Definition SR.cs:50
static string Arg_CryptographyException
Definition SR.cs:108
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:76
static string Cryptography_InvalidFeedbackSize
Definition SR.cs:38
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 Argument_BitsMustBeWholeBytes
Definition SR.cs:26
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
static string HashNameMultipleSetNotSupported
Definition SR.cs:68
static string Cryptography_MatchFeedbackSize
Definition SR.cs:54
static string Cryptography_InvalidCipherMode
Definition SR.cs:54
static string NotSupported_SubclassOverride
Definition SR.cs:1714
static string Cryptography_InvalidIVSize
Definition SR.cs:102
static string CryptoConfigNotSupported
Definition SR.cs:70