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 MoreThanOneMatch => GetResourceString("MoreThanOneMatch");
15
16 internal static string NoElements => GetResourceString("NoElements");
17
18 internal static string ParallelPartitionable_NullReturn => GetResourceString("ParallelPartitionable_NullReturn");
19
20 internal static string ParallelPartitionable_IncorretElementCount => GetResourceString("ParallelPartitionable_IncorretElementCount");
21
22 internal static string ParallelPartitionable_NullElement => GetResourceString("ParallelPartitionable_NullElement");
23
24 internal static string PLINQ_CommonEnumerator_Current_NotStarted => GetResourceString("PLINQ_CommonEnumerator_Current_NotStarted");
25
26 internal static string PLINQ_ExternalCancellationRequested => GetResourceString("PLINQ_ExternalCancellationRequested");
27
28 internal static string PLINQ_DisposeRequested => GetResourceString("PLINQ_DisposeRequested");
29
30 internal static string ParallelQuery_DuplicateTaskScheduler => GetResourceString("ParallelQuery_DuplicateTaskScheduler");
31
32 internal static string ParallelQuery_DuplicateDOP => GetResourceString("ParallelQuery_DuplicateDOP");
33
34 internal static string ParallelQuery_DuplicateExecutionMode => GetResourceString("ParallelQuery_DuplicateExecutionMode");
35
36 internal static string PartitionerQueryOperator_NullPartitionList => GetResourceString("PartitionerQueryOperator_NullPartitionList");
37
38 internal static string PartitionerQueryOperator_WrongNumberOfPartitions => GetResourceString("PartitionerQueryOperator_WrongNumberOfPartitions");
39
40 internal static string PartitionerQueryOperator_NullPartition => GetResourceString("PartitionerQueryOperator_NullPartition");
41
42 internal static string ParallelQuery_DuplicateWithCancellation => GetResourceString("ParallelQuery_DuplicateWithCancellation");
43
44 internal static string ParallelQuery_DuplicateMergeOptions => GetResourceString("ParallelQuery_DuplicateMergeOptions");
45
46 internal static string PLINQ_EnumerationPreviouslyFailed => GetResourceString("PLINQ_EnumerationPreviouslyFailed");
47
48 internal static string ParallelQuery_PartitionerNotOrderable => GetResourceString("ParallelQuery_PartitionerNotOrderable");
49
50 internal static string ParallelQuery_InvalidAsOrderedCall => GetResourceString("ParallelQuery_InvalidAsOrderedCall");
51
52 internal static string ParallelQuery_InvalidNonGenericAsOrderedCall => GetResourceString("ParallelQuery_InvalidNonGenericAsOrderedCall");
53
54 internal static string ParallelEnumerable_BinaryOpMustUseAsParallel => GetResourceString("ParallelEnumerable_BinaryOpMustUseAsParallel");
55
56 internal static string ParallelEnumerable_WithQueryExecutionMode_InvalidMode => GetResourceString("ParallelEnumerable_WithQueryExecutionMode_InvalidMode");
57
58 internal static string ParallelEnumerable_WithMergeOptions_InvalidOptions => GetResourceString("ParallelEnumerable_WithMergeOptions_InvalidOptions");
59
60 private static bool UsingResourceKeys()
61 {
63 }
64
65 internal static string GetResourceString(string resourceKey)
66 {
68 {
69 return resourceKey;
70 }
71 string result = null;
72 try
73 {
74 result = ResourceManager.GetString(resourceKey);
75 }
77 {
78 }
79 return result;
80 }
81}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string NoElements
Definition SR.cs:16
static string ParallelPartitionable_IncorretElementCount
Definition SR.cs:20
static string PLINQ_ExternalCancellationRequested
Definition SR.cs:26
static string MoreThanOneMatch
Definition SR.cs:14
static ResourceManager s_resourceManager
Definition SR.cs:10
static string PLINQ_EnumerationPreviouslyFailed
Definition SR.cs:46
static string ParallelQuery_DuplicateMergeOptions
Definition SR.cs:44
static string ParallelQuery_InvalidAsOrderedCall
Definition SR.cs:50
static string ParallelQuery_DuplicateDOP
Definition SR.cs:32
static string ParallelQuery_DuplicateWithCancellation
Definition SR.cs:42
static string ParallelEnumerable_WithMergeOptions_InvalidOptions
Definition SR.cs:58
static string ParallelQuery_DuplicateTaskScheduler
Definition SR.cs:30
static string ParallelPartitionable_NullElement
Definition SR.cs:22
static ResourceManager ResourceManager
Definition SR.cs:12
static string ParallelQuery_InvalidNonGenericAsOrderedCall
Definition SR.cs:52
static string ParallelPartitionable_NullReturn
Definition SR.cs:18
static string PartitionerQueryOperator_NullPartitionList
Definition SR.cs:36
static string PartitionerQueryOperator_NullPartition
Definition SR.cs:40
static string ParallelEnumerable_BinaryOpMustUseAsParallel
Definition SR.cs:54
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:60
static string PLINQ_DisposeRequested
Definition SR.cs:28
static string PLINQ_CommonEnumerator_Current_NotStarted
Definition SR.cs:24
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string PartitionerQueryOperator_WrongNumberOfPartitions
Definition SR.cs:38
static string ParallelEnumerable_WithQueryExecutionMode_InvalidMode
Definition SR.cs:56
static string ParallelQuery_DuplicateExecutionMode
Definition SR.cs:34
static string ParallelQuery_PartitionerNotOrderable
Definition SR.cs:48