Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
IsErrorRedirected
bool
System.Console.IsErrorRedirected
static
get
Definition at line
218
of file
Console.cs
.
219
{
220
get
221
{
222
StrongBox<bool>
strongBox =
Volatile
.
Read
(ref
_isStdErrRedirected
) ?? EnsureInitialized();
223
return
strongBox.
Value
;
224
static
StrongBox<bool>
EnsureInitialized()
225
{
226
Volatile
.
Write
(ref
_isStdErrRedirected
,
new
StrongBox<bool>
(ConsolePal.IsErrorRedirectedCore()));
227
return
_isStdErrRedirected
;
228
}
229
}
230
}
System.Console._isStdErrRedirected
static StrongBox< bool > _isStdErrRedirected
Definition
Console.cs:38
System.Runtime.CompilerServices.StrongBox.Value
T Value
Definition
StrongBox.cs:8
System.Runtime.CompilerServices.StrongBox
Definition
StrongBox.cs:6
System.Threading.Volatile.Read
static bool Read(ref bool location)
Definition
Volatile.cs:67
System.Threading.Volatile.Write
static void Write(ref bool location, bool value)
Definition
Volatile.cs:74
System.Threading.Volatile
Definition
Volatile.cs:9
Referenced by
System.ConsolePal.OpenStandardError()
.
System
Console
Generated by
1.10.0