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 CountdownEvent_Increment_AlreadyZero => GetResourceString("CountdownEvent_Increment_AlreadyZero");
15
16 internal static string CountdownEvent_Increment_AlreadyMax => GetResourceString("CountdownEvent_Increment_AlreadyMax");
17
18 internal static string CountdownEvent_Decrement_BelowZero => GetResourceString("CountdownEvent_Decrement_BelowZero");
19
20 internal static string Common_OperationCanceled => GetResourceString("Common_OperationCanceled");
21
22 internal static string Barrier_Dispose => GetResourceString("Barrier_Dispose");
23
24 internal static string Barrier_SignalAndWait_InvalidOperation_ZeroTotal => GetResourceString("Barrier_SignalAndWait_InvalidOperation_ZeroTotal");
25
26 internal static string Barrier_SignalAndWait_ArgumentOutOfRange => GetResourceString("Barrier_SignalAndWait_ArgumentOutOfRange");
27
28 internal static string Barrier_RemoveParticipants_InvalidOperation => GetResourceString("Barrier_RemoveParticipants_InvalidOperation");
29
30 internal static string Barrier_RemoveParticipants_ArgumentOutOfRange => GetResourceString("Barrier_RemoveParticipants_ArgumentOutOfRange");
31
32 internal static string Barrier_RemoveParticipants_NonPositive_ArgumentOutOfRange => GetResourceString("Barrier_RemoveParticipants_NonPositive_ArgumentOutOfRange");
33
34 internal static string Barrier_InvalidOperation_CalledFromPHA => GetResourceString("Barrier_InvalidOperation_CalledFromPHA");
35
36 internal static string Barrier_AddParticipants_NonPositive_ArgumentOutOfRange => GetResourceString("Barrier_AddParticipants_NonPositive_ArgumentOutOfRange");
37
38 internal static string Barrier_SignalAndWait_InvalidOperation_ThreadsExceeded => GetResourceString("Barrier_SignalAndWait_InvalidOperation_ThreadsExceeded");
39
40 internal static string BarrierPostPhaseException => GetResourceString("BarrierPostPhaseException");
41
42 internal static string Barrier_ctor_ArgumentOutOfRange => GetResourceString("Barrier_ctor_ArgumentOutOfRange");
43
44 internal static string Barrier_AddParticipants_Overflow_ArgumentOutOfRange => GetResourceString("Barrier_AddParticipants_Overflow_ArgumentOutOfRange");
45
46 internal static string Overflow_UInt16 => GetResourceString("Overflow_UInt16");
47
48 internal static string ReaderWriterLock_Timeout => GetResourceString("ReaderWriterLock_Timeout");
49
50 internal static string ArgumentOutOfRange_TimeoutMilliseconds => GetResourceString("ArgumentOutOfRange_TimeoutMilliseconds");
51
52 internal static string ReaderWriterLock_NotOwner => GetResourceString("ReaderWriterLock_NotOwner");
53
54 internal static string ExceptionFromHResult => GetResourceString("ExceptionFromHResult");
55
56 internal static string ReaderWriterLock_InvalidLockCookie => GetResourceString("ReaderWriterLock_InvalidLockCookie");
57
58 internal static string ReaderWriterLock_RestoreLockWithOwnedLocks => GetResourceString("ReaderWriterLock_RestoreLockWithOwnedLocks");
59
60 internal static string HostExecutionContextManager_InvalidOperation_NotNewCaptureContext => GetResourceString("HostExecutionContextManager_InvalidOperation_NotNewCaptureContext");
61
62 internal static string HostExecutionContextManager_InvalidOperation_CannotOverrideSetWithoutRevert => GetResourceString("HostExecutionContextManager_InvalidOperation_CannotOverrideSetWithoutRevert");
63
64 internal static string HostExecutionContextManager_InvalidOperation_CannotUseSwitcherOtherThread => GetResourceString("HostExecutionContextManager_InvalidOperation_CannotUseSwitcherOtherThread");
65
66 private static bool UsingResourceKeys()
67 {
69 }
70
71 internal static string GetResourceString(string resourceKey)
72 {
74 {
75 return resourceKey;
76 }
77 string result = null;
78 try
79 {
80 result = ResourceManager.GetString(resourceKey);
81 }
83 {
84 }
85 return result;
86 }
87
88 internal static string Format(string resourceFormat, object p1)
89 {
91 {
92 return string.Join(", ", resourceFormat, p1);
93 }
94 return string.Format(resourceFormat, p1);
95 }
96}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static string CountdownEvent_Decrement_BelowZero
Definition SR.cs:18
static string ReaderWriterLock_NotOwner
Definition SR.cs:52
static string BarrierPostPhaseException
Definition SR.cs:40
static string Barrier_SignalAndWait_InvalidOperation_ThreadsExceeded
Definition SR.cs:38
static string Overflow_UInt16
Definition SR.cs:1786
static string ReaderWriterLock_Timeout
Definition SR.cs:48
static ResourceManager s_resourceManager
Definition SR.cs:10
static string CountdownEvent_Increment_AlreadyZero
Definition SR.cs:14
static string Barrier_AddParticipants_NonPositive_ArgumentOutOfRange
Definition SR.cs:36
static string HostExecutionContextManager_InvalidOperation_CannotUseSwitcherOtherThread
Definition SR.cs:64
static string Format(string resourceFormat, object p1)
Definition SR.cs:88
static string Barrier_AddParticipants_Overflow_ArgumentOutOfRange
Definition SR.cs:44
static string Barrier_ctor_ArgumentOutOfRange
Definition SR.cs:42
static ResourceManager ResourceManager
Definition SR.cs:12
static string ReaderWriterLock_InvalidLockCookie
Definition SR.cs:56
static string ArgumentOutOfRange_TimeoutMilliseconds
Definition SR.cs:50
static string CountdownEvent_Increment_AlreadyMax
Definition SR.cs:16
static string HostExecutionContextManager_InvalidOperation_NotNewCaptureContext
Definition SR.cs:60
static string ExceptionFromHResult
Definition SR.cs:54
static string Barrier_InvalidOperation_CalledFromPHA
Definition SR.cs:34
static string Barrier_RemoveParticipants_NonPositive_ArgumentOutOfRange
Definition SR.cs:32
static string Barrier_SignalAndWait_ArgumentOutOfRange
Definition SR.cs:26
static string Barrier_Dispose
Definition SR.cs:22
static string Barrier_RemoveParticipants_InvalidOperation
Definition SR.cs:28
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:66
static string Barrier_SignalAndWait_InvalidOperation_ZeroTotal
Definition SR.cs:24
static string HostExecutionContextManager_InvalidOperation_CannotOverrideSetWithoutRevert
Definition SR.cs:62
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string Barrier_RemoveParticipants_ArgumentOutOfRange
Definition SR.cs:30
static string Common_OperationCanceled
Definition SR.cs:20
static string ReaderWriterLock_RestoreLockWithOwnedLocks
Definition SR.cs:58