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 BlockingCollection_Add_ConcurrentCompleteAdd => GetResourceString("BlockingCollection_Add_ConcurrentCompleteAdd");
15
16 internal static string BlockingCollection_Add_Failed => GetResourceString("BlockingCollection_Add_Failed");
17
18 internal static string BlockingCollection_CantAddAnyWhenCompleted => GetResourceString("BlockingCollection_CantAddAnyWhenCompleted");
19
20 internal static string BlockingCollection_CantTakeAnyWhenAllDone => GetResourceString("BlockingCollection_CantTakeAnyWhenAllDone");
21
22 internal static string BlockingCollection_CantTakeWhenDone => GetResourceString("BlockingCollection_CantTakeWhenDone");
23
24 internal static string BlockingCollection_Completed => GetResourceString("BlockingCollection_Completed");
25
26 internal static string BlockingCollection_CopyTo_IncorrectType => GetResourceString("BlockingCollection_CopyTo_IncorrectType");
27
28 internal static string BlockingCollection_CopyTo_MultiDim => GetResourceString("BlockingCollection_CopyTo_MultiDim");
29
30 internal static string BlockingCollection_CopyTo_NonNegative => GetResourceString("BlockingCollection_CopyTo_NonNegative");
31
32 internal static string Collection_CopyTo_TooManyElems => GetResourceString("Collection_CopyTo_TooManyElems");
33
34 internal static string BlockingCollection_ctor_BoundedCapacityRange => GetResourceString("BlockingCollection_ctor_BoundedCapacityRange");
35
36 internal static string BlockingCollection_ctor_CountMoreThanCapacity => GetResourceString("BlockingCollection_ctor_CountMoreThanCapacity");
37
38 internal static string BlockingCollection_Disposed => GetResourceString("BlockingCollection_Disposed");
39
40 internal static string BlockingCollection_Take_CollectionModified => GetResourceString("BlockingCollection_Take_CollectionModified");
41
42 internal static string BlockingCollection_TimeoutInvalid => GetResourceString("BlockingCollection_TimeoutInvalid");
43
44 internal static string BlockingCollection_ValidateCollectionsArray_DispElems => GetResourceString("BlockingCollection_ValidateCollectionsArray_DispElems");
45
46 internal static string BlockingCollection_ValidateCollectionsArray_LargeSize => GetResourceString("BlockingCollection_ValidateCollectionsArray_LargeSize");
47
48 internal static string BlockingCollection_ValidateCollectionsArray_NullElems => GetResourceString("BlockingCollection_ValidateCollectionsArray_NullElems");
49
50 internal static string BlockingCollection_ValidateCollectionsArray_ZeroSize => GetResourceString("BlockingCollection_ValidateCollectionsArray_ZeroSize");
51
52 internal static string ConcurrentBag_Ctor_ArgumentNullException => GetResourceString("ConcurrentBag_Ctor_ArgumentNullException");
53
54 internal static string ConcurrentBag_CopyTo_ArgumentNullException => GetResourceString("ConcurrentBag_CopyTo_ArgumentNullException");
55
56 internal static string Collection_CopyTo_ArgumentOutOfRangeException => GetResourceString("Collection_CopyTo_ArgumentOutOfRangeException");
57
58 internal static string ConcurrentCollection_SyncRoot_NotSupported => GetResourceString("ConcurrentCollection_SyncRoot_NotSupported");
59
60 internal static string ConcurrentDictionary_ArrayIncorrectType => GetResourceString("ConcurrentDictionary_ArrayIncorrectType");
61
62 internal static string ConcurrentDictionary_SourceContainsDuplicateKeys => GetResourceString("ConcurrentDictionary_SourceContainsDuplicateKeys");
63
64 internal static string ConcurrentDictionary_ConcurrencyLevelMustBePositive => GetResourceString("ConcurrentDictionary_ConcurrencyLevelMustBePositive");
65
66 internal static string ConcurrentDictionary_CapacityMustNotBeNegative => GetResourceString("ConcurrentDictionary_CapacityMustNotBeNegative");
67
68 internal static string ConcurrentDictionary_IndexIsNegative => GetResourceString("ConcurrentDictionary_IndexIsNegative");
69
70 internal static string ConcurrentDictionary_ArrayNotLargeEnough => GetResourceString("ConcurrentDictionary_ArrayNotLargeEnough");
71
72 internal static string ConcurrentDictionary_KeyAlreadyExisted => GetResourceString("ConcurrentDictionary_KeyAlreadyExisted");
73
74 internal static string ConcurrentDictionary_ItemKeyIsNull => GetResourceString("ConcurrentDictionary_ItemKeyIsNull");
75
76 internal static string ConcurrentDictionary_TypeOfKeyIncorrect => GetResourceString("ConcurrentDictionary_TypeOfKeyIncorrect");
77
78 internal static string ConcurrentDictionary_TypeOfValueIncorrect => GetResourceString("ConcurrentDictionary_TypeOfValueIncorrect");
79
80 internal static string ConcurrentStack_PushPopRange_CountOutOfRange => GetResourceString("ConcurrentStack_PushPopRange_CountOutOfRange");
81
82 internal static string ConcurrentStack_PushPopRange_InvalidCount => GetResourceString("ConcurrentStack_PushPopRange_InvalidCount");
83
84 internal static string ConcurrentStack_PushPopRange_StartOutOfRange => GetResourceString("ConcurrentStack_PushPopRange_StartOutOfRange");
85
86 internal static string Partitioner_DynamicPartitionsNotSupported => GetResourceString("Partitioner_DynamicPartitionsNotSupported");
87
88 internal static string PartitionerStatic_CanNotCallGetEnumeratorAfterSourceHasBeenDisposed => GetResourceString("PartitionerStatic_CanNotCallGetEnumeratorAfterSourceHasBeenDisposed");
89
90 internal static string PartitionerStatic_CurrentCalledBeforeMoveNext => GetResourceString("PartitionerStatic_CurrentCalledBeforeMoveNext");
91
92 internal static string ConcurrentBag_Enumerator_EnumerationNotStartedOrAlreadyFinished => GetResourceString("ConcurrentBag_Enumerator_EnumerationNotStartedOrAlreadyFinished");
93
94 internal static string Arg_KeyNotFoundWithKey => GetResourceString("Arg_KeyNotFoundWithKey");
95
96 private static bool UsingResourceKeys()
97 {
99 }
100
101 internal static string GetResourceString(string resourceKey)
102 {
103 if (UsingResourceKeys())
104 {
105 return resourceKey;
106 }
107 string result = null;
108 try
109 {
110 result = ResourceManager.GetString(resourceKey);
111 }
113 {
114 }
115 return result;
116 }
117
118 internal static string Format(string resourceFormat, object p1)
119 {
120 if (UsingResourceKeys())
121 {
122 return string.Join(", ", resourceFormat, p1);
123 }
124 return string.Format(resourceFormat, p1);
125 }
126
127 internal static string Format(IFormatProvider provider, string resourceFormat, object p1)
128 {
129 if (UsingResourceKeys())
130 {
131 return string.Join(", ", resourceFormat, p1);
132 }
133 return string.Format(provider, resourceFormat, p1);
134 }
135}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string BlockingCollection_CopyTo_NonNegative
Definition SR.cs:30
static string BlockingCollection_ValidateCollectionsArray_LargeSize
Definition SR.cs:46
static string BlockingCollection_Take_CollectionModified
Definition SR.cs:40
static string ConcurrentDictionary_ConcurrencyLevelMustBePositive
Definition SR.cs:64
static string ConcurrentBag_CopyTo_ArgumentNullException
Definition SR.cs:54
static string PartitionerStatic_CanNotCallGetEnumeratorAfterSourceHasBeenDisposed
Definition SR.cs:88
static string BlockingCollection_CopyTo_MultiDim
Definition SR.cs:28
static string Partitioner_DynamicPartitionsNotSupported
Definition SR.cs:86
static string ConcurrentCollection_SyncRoot_NotSupported
Definition SR.cs:58
static ResourceManager s_resourceManager
Definition SR.cs:10
static string ConcurrentDictionary_ArrayIncorrectType
Definition SR.cs:60
static string BlockingCollection_CopyTo_IncorrectType
Definition SR.cs:26
static string ConcurrentDictionary_KeyAlreadyExisted
Definition SR.cs:72
static string BlockingCollection_Add_Failed
Definition SR.cs:16
static string PartitionerStatic_CurrentCalledBeforeMoveNext
Definition SR.cs:90
static string BlockingCollection_CantTakeAnyWhenAllDone
Definition SR.cs:20
static string Format(IFormatProvider provider, string resourceFormat, object p1)
Definition SR.cs:127
static string ConcurrentDictionary_TypeOfKeyIncorrect
Definition SR.cs:76
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string BlockingCollection_ValidateCollectionsArray_ZeroSize
Definition SR.cs:50
static string BlockingCollection_ValidateCollectionsArray_NullElems
Definition SR.cs:48
static string ConcurrentBag_Ctor_ArgumentNullException
Definition SR.cs:52
static string ConcurrentDictionary_ItemKeyIsNull
Definition SR.cs:74
static string BlockingCollection_ctor_BoundedCapacityRange
Definition SR.cs:34
static string BlockingCollection_CantAddAnyWhenCompleted
Definition SR.cs:18
static string BlockingCollection_TimeoutInvalid
Definition SR.cs:42
static ResourceManager ResourceManager
Definition SR.cs:12
static string BlockingCollection_ValidateCollectionsArray_DispElems
Definition SR.cs:44
static string ConcurrentStack_PushPopRange_CountOutOfRange
Definition SR.cs:80
static string ConcurrentStack_PushPopRange_StartOutOfRange
Definition SR.cs:84
static string ConcurrentBag_Enumerator_EnumerationNotStartedOrAlreadyFinished
Definition SR.cs:92
static string ConcurrentDictionary_SourceContainsDuplicateKeys
Definition SR.cs:62
static string ConcurrentDictionary_ArrayNotLargeEnough
Definition SR.cs:70
static string BlockingCollection_CantTakeWhenDone
Definition SR.cs:22
static string Collection_CopyTo_TooManyElems
Definition SR.cs:32
static string ConcurrentStack_PushPopRange_InvalidCount
Definition SR.cs:82
static string ConcurrentDictionary_CapacityMustNotBeNegative
Definition SR.cs:66
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static string BlockingCollection_Add_ConcurrentCompleteAdd
Definition SR.cs:14
static bool UsingResourceKeys()
Definition SR.cs:96
static string BlockingCollection_Completed
Definition SR.cs:24
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string ConcurrentDictionary_IndexIsNegative
Definition SR.cs:68
static string BlockingCollection_ctor_CountMoreThanCapacity
Definition SR.cs:36
static string BlockingCollection_Disposed
Definition SR.cs:38
static string Arg_KeyNotFoundWithKey
Definition SR.cs:94
static string Collection_CopyTo_ArgumentOutOfRangeException
Definition SR.cs:56
static string ConcurrentDictionary_TypeOfValueIncorrect
Definition SR.cs:78
Definition SR.cs:7