Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
SR.cs
Go to the documentation of this file.
1
using
System.Resources
;
2
using
FxResources.System.Net.NameResolution
;
3
4
namespace
System
;
5
6
internal
static
class
SR
7
{
8
private
static
readonly
bool
s_usingResourceKeys
=
AppContext
.
TryGetSwitch
(
"System.Resources.UseSystemResourceKeys"
, out var isEnabled) && isEnabled;
9
10
private
static
ResourceManager
s_resourceManager
;
11
12
internal
static
ResourceManager
ResourceManager
=>
s_resourceManager
?? (
s_resourceManager
=
new
ResourceManager
(typeof(
SR
)));
13
14
internal
static
string
net_toolong
=>
GetResourceString
(
"net_toolong"
);
15
16
internal
static
string
net_invalid_ip_addr
=>
GetResourceString
(
"net_invalid_ip_addr"
);
17
18
private
static
bool
UsingResourceKeys
()
19
{
20
return
s_usingResourceKeys
;
21
}
18
private
static
bool
UsingResourceKeys
() {
…
}
22
23
internal
static
string
GetResourceString
(
string
resourceKey)
24
{
25
if
(
UsingResourceKeys
())
26
{
27
return
resourceKey;
28
}
29
string
result =
null
;
30
try
31
{
32
result =
ResourceManager
.
GetString
(resourceKey);
33
}
34
catch
(
MissingManifestResourceException
)
35
{
36
}
37
return
result;
38
}
23
internal
static
string
GetResourceString
(
string
resourceKey) {
…
}
39
40
internal
static
string
Format
(
string
resourceFormat,
object
p1)
41
{
42
if
(
UsingResourceKeys
())
43
{
44
return
string
.Join(
", "
, resourceFormat, p1);
45
}
46
return
string
.Format(resourceFormat, p1);
47
}
40
internal
static
string
Format
(
string
resourceFormat,
object
p1) {
…
}
48
49
internal
static
string
Format
(
string
resourceFormat,
object
p1,
object
p2)
50
{
51
if
(
UsingResourceKeys
())
52
{
53
return
string
.Join(
", "
, resourceFormat, p1, p2);
54
}
55
return
string
.Format(resourceFormat, p1, p2);
56
}
49
internal
static
string
Format
(
string
resourceFormat,
object
p1,
object
p2) {
…
}
57
}
FxResources.System.Net.NameResolution.SR
Definition
SR.cs:4
System.AppContext.TryGetSwitch
static bool TryGetSwitch(string switchName, out bool isEnabled)
Definition
AppContext.cs:74
System.AppContext
Definition
AppContext.cs:14
System.Resources.MissingManifestResourceException
Definition
MissingManifestResourceException.cs:9
System.Resources.ResourceManager.GetString
virtual ? string GetString(string name)
Definition
ResourceManager.cs:459
System.Resources.ResourceManager
Definition
ResourceManager.cs:10
System.SR.net_invalid_ip_addr
static string net_invalid_ip_addr
Definition
SR.cs:16
System.SR.s_resourceManager
static ResourceManager s_resourceManager
Definition
SR.cs:10
System.SR.net_toolong
static string net_toolong
Definition
SR.cs:14
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:40
System.SR.Format
static string Format(string resourceFormat, object p1, object p2)
Definition
SR.cs:49
System.SR.ResourceManager
static ResourceManager ResourceManager
Definition
SR.cs:12
System.SR.GetResourceString
static string GetResourceString(string resourceKey)
Definition
SR.cs:101
System.SR.UsingResourceKeys
static bool UsingResourceKeys()
Definition
SR.cs:18
System.SR.s_usingResourceKeys
static readonly bool s_usingResourceKeys
Definition
SR.cs:8
FxResources.System.Net.NameResolution
Definition
SR.cs:1
System.Resources
Definition
FastResourceComparer.cs:5
System
Definition
BlockingCollection.cs:8
source
System.Net.NameResolution
System
SR.cs
Generated by
1.10.0