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.IO.FileSystem.DriveInfo
;
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
Arg_MustBeDriveLetterOrRootDir
=>
GetResourceString
(
"Arg_MustBeDriveLetterOrRootDir"
);
15
16
internal
static
string
InvalidOperation_SetVolumeLabelFailed
=>
GetResourceString
(
"InvalidOperation_SetVolumeLabelFailed"
);
17
18
internal
static
string
IO_AlreadyExists_Name
=>
GetResourceString
(
"IO_AlreadyExists_Name"
);
19
20
internal
static
string
IO_DriveNotFound
=>
GetResourceString
(
"IO_DriveNotFound"
);
21
22
internal
static
string
IO_DriveNotFound_Drive
=>
GetResourceString
(
"IO_DriveNotFound_Drive"
);
23
24
internal
static
string
IO_FileExists_Name
=>
GetResourceString
(
"IO_FileExists_Name"
);
25
26
internal
static
string
IO_FileNotFound
=>
GetResourceString
(
"IO_FileNotFound"
);
27
28
internal
static
string
IO_FileNotFound_FileName
=>
GetResourceString
(
"IO_FileNotFound_FileName"
);
29
30
internal
static
string
IO_PathNotFound_NoPathName
=>
GetResourceString
(
"IO_PathNotFound_NoPathName"
);
31
32
internal
static
string
IO_PathNotFound_Path
=>
GetResourceString
(
"IO_PathNotFound_Path"
);
33
34
internal
static
string
IO_PathTooLong
=>
GetResourceString
(
"IO_PathTooLong"
);
35
36
internal
static
string
IO_SharingViolation_File
=>
GetResourceString
(
"IO_SharingViolation_File"
);
37
38
internal
static
string
IO_SharingViolation_NoFileName
=>
GetResourceString
(
"IO_SharingViolation_NoFileName"
);
39
40
internal
static
string
UnauthorizedAccess_IODenied_NoPathName
=>
GetResourceString
(
"UnauthorizedAccess_IODenied_NoPathName"
);
41
42
internal
static
string
UnauthorizedAccess_IODenied_Path
=>
GetResourceString
(
"UnauthorizedAccess_IODenied_Path"
);
43
44
internal
static
string
IO_PathTooLong_Path
=>
GetResourceString
(
"IO_PathTooLong_Path"
);
45
46
private
static
bool
UsingResourceKeys
()
47
{
48
return
s_usingResourceKeys
;
49
}
46
private
static
bool
UsingResourceKeys
() {
…
}
50
51
internal
static
string
GetResourceString
(
string
resourceKey)
52
{
53
if
(
UsingResourceKeys
())
54
{
55
return
resourceKey;
56
}
57
string
result =
null
;
58
try
59
{
60
result =
ResourceManager
.
GetString
(resourceKey);
61
}
62
catch
(
MissingManifestResourceException
)
63
{
64
}
65
return
result;
66
}
51
internal
static
string
GetResourceString
(
string
resourceKey) {
…
}
67
68
internal
static
string
Format
(
string
resourceFormat,
object
p1)
69
{
70
if
(
UsingResourceKeys
())
71
{
72
return
string
.Join(
", "
, resourceFormat, p1);
73
}
74
return
string
.Format(resourceFormat, p1);
75
}
68
internal
static
string
Format
(
string
resourceFormat,
object
p1) {
…
}
76
}
FxResources.System.IO.FileSystem.DriveInfo.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.IO_FileExists_Name
static string IO_FileExists_Name
Definition
SR.cs:36
System.SR.IO_PathTooLong
static string IO_PathTooLong
Definition
SR.cs:46
System.SR.IO_AlreadyExists_Name
static string IO_AlreadyExists_Name
Definition
SR.cs:34
System.SR.s_resourceManager
static ResourceManager s_resourceManager
Definition
SR.cs:10
System.SR.IO_DriveNotFound
static string IO_DriveNotFound
Definition
SR.cs:20
System.SR.Format
static string Format(string resourceFormat, object p1)
Definition
SR.cs:68
System.SR.Arg_MustBeDriveLetterOrRootDir
static string Arg_MustBeDriveLetterOrRootDir
Definition
SR.cs:14
System.SR.InvalidOperation_SetVolumeLabelFailed
static string InvalidOperation_SetVolumeLabelFailed
Definition
SR.cs:16
System.SR.ResourceManager
static ResourceManager ResourceManager
Definition
SR.cs:12
System.SR.IO_SharingViolation_File
static string IO_SharingViolation_File
Definition
SR.cs:52
System.SR.UnauthorizedAccess_IODenied_Path
static string UnauthorizedAccess_IODenied_Path
Definition
SR.cs:50
System.SR.IO_DriveNotFound_Drive
static string IO_DriveNotFound_Drive
Definition
SR.cs:22
System.SR.IO_SharingViolation_NoFileName
static string IO_SharingViolation_NoFileName
Definition
SR.cs:54
System.SR.IO_PathNotFound_NoPathName
static string IO_PathNotFound_NoPathName
Definition
SR.cs:42
System.SR.IO_FileNotFound
static string IO_FileNotFound
Definition
SR.cs:38
System.SR.IO_FileNotFound_FileName
static string IO_FileNotFound_FileName
Definition
SR.cs:40
System.SR.GetResourceString
static string GetResourceString(string resourceKey)
Definition
SR.cs:101
System.SR.UsingResourceKeys
static bool UsingResourceKeys()
Definition
SR.cs:46
System.SR.s_usingResourceKeys
static readonly bool s_usingResourceKeys
Definition
SR.cs:8
System.SR.IO_PathTooLong_Path
static string IO_PathTooLong_Path
Definition
SR.cs:94
System.SR.IO_PathNotFound_Path
static string IO_PathNotFound_Path
Definition
SR.cs:44
System.SR.UnauthorizedAccess_IODenied_NoPathName
static string UnauthorizedAccess_IODenied_NoPathName
Definition
SR.cs:48
FxResources.System.IO.FileSystem.DriveInfo
Definition
SR.cs:1
System.Resources
Definition
FastResourceComparer.cs:5
System
Definition
BlockingCollection.cs:8
source
System.IO.FileSystem.DriveInfo
System
SR.cs
Generated by
1.10.0