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 InvalidOperation_ResourceWriterSaved => GetResourceString("InvalidOperation_ResourceWriterSaved");
15
16 internal static string Argument_StreamNotWritable => GetResourceString("Argument_StreamNotWritable");
17
18 internal static string NotSupported_UnseekableStream => GetResourceString("NotSupported_UnseekableStream");
19
20 internal static string NotSupported_BinarySerializedResources => GetResourceString("NotSupported_BinarySerializedResources");
21
22 internal static string ArgumentOutOfRange_StreamLength => GetResourceString("ArgumentOutOfRange_StreamLength");
23
24 private static bool UsingResourceKeys()
25 {
27 }
28
29 internal static string GetResourceString(string resourceKey)
30 {
32 {
33 return resourceKey;
34 }
35 string result = null;
36 try
37 {
38 result = ResourceManager.GetString(resourceKey);
39 }
41 {
42 }
43 return result;
44 }
45}
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition AppContext.cs:74
virtual ? string GetString(string name)
static ResourceManager s_resourceManager
Definition SR.cs:10
static string NotSupported_BinarySerializedResources
Definition SR.cs:20
static string Argument_StreamNotWritable
Definition SR.cs:878
static string NotSupported_UnseekableStream
Definition SR.cs:26
static ResourceManager ResourceManager
Definition SR.cs:12
static string InvalidOperation_ResourceWriterSaved
Definition SR.cs:14
static string GetResourceString(string resourceKey)
Definition SR.cs:101
static bool UsingResourceKeys()
Definition SR.cs:24
static readonly bool s_usingResourceKeys
Definition SR.cs:8
static string ArgumentOutOfRange_StreamLength
Definition SR.cs:1110