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_BatchSizeMustBeNoGreaterThanBoundedCapacity => GetResourceString("ArgumentOutOfRange_BatchSizeMustBeNoGreaterThanBoundedCapacity");
15
16 internal static string ArgumentOutOfRange_GenericPositive => GetResourceString("ArgumentOutOfRange_GenericPositive");
17
18 internal static string ArgumentOutOfRange_NeedNonNegOrNegative1 => GetResourceString("ArgumentOutOfRange_NeedNonNegOrNegative1");
19
20 internal static string Argument_BoundedCapacityNotSupported => GetResourceString("Argument_BoundedCapacityNotSupported");
21
22 internal static string Argument_CantConsumeFromANullSource => GetResourceString("Argument_CantConsumeFromANullSource");
23
24 internal static string Argument_InvalidMessageHeader => GetResourceString("Argument_InvalidMessageHeader");
25
26 internal static string Argument_InvalidMessageId => GetResourceString("Argument_InvalidMessageId");
27
28 internal static string Argument_NonGreedyNotSupported => GetResourceString("Argument_NonGreedyNotSupported");
29
30 internal static string InvalidOperation_DataNotAvailableForReceive => GetResourceString("InvalidOperation_DataNotAvailableForReceive");
31
32 internal static string InvalidOperation_FailedToConsumeReservedMessage => GetResourceString("InvalidOperation_FailedToConsumeReservedMessage");
33
34 internal static string InvalidOperation_MessageNotReservedByTarget => GetResourceString("InvalidOperation_MessageNotReservedByTarget");
35
36 internal static string NotSupported_MemberNotNeeded => GetResourceString("NotSupported_MemberNotNeeded");
37
38 internal static string InvalidOperation_ErrorDuringCleanup => GetResourceString("InvalidOperation_ErrorDuringCleanup");
39
40 private static bool UsingResourceKeys()
41 {
43 }
44
45 internal static string GetResourceString(string resourceKey)
46 {
48 {
49 return resourceKey;
50 }
51 string result = null;
52 try
53 {
54 result = ResourceManager.GetString(resourceKey);
55 }
57 {
58 }
59 return result;
60 }
61}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string InvalidOperation_FailedToConsumeReservedMessage
Definition SR.cs:32
static string Argument_InvalidMessageHeader
Definition SR.cs:24
static string InvalidOperation_MessageNotReservedByTarget
Definition SR.cs:34
static ResourceManager s_resourceManager
Definition SR.cs:10
static string NotSupported_MemberNotNeeded
Definition SR.cs:36
static string Argument_InvalidMessageId
Definition SR.cs:26
static string InvalidOperation_DataNotAvailableForReceive
Definition SR.cs:30
static string ArgumentOutOfRange_NeedNonNegOrNegative1
Definition SR.cs:1072
static ResourceManager ResourceManager
Definition SR.cs:12
static string Argument_BoundedCapacityNotSupported
Definition SR.cs:20
static string InvalidOperation_ErrorDuringCleanup
Definition SR.cs:38
static string Argument_CantConsumeFromANullSource
Definition SR.cs:22
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:40
static string ArgumentOutOfRange_GenericPositive
Definition SR.cs:1018
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string Argument_NonGreedyNotSupported
Definition SR.cs:28
static string ArgumentOutOfRange_BatchSizeMustBeNoGreaterThanBoundedCapacity
Definition SR.cs:14