Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
IsOutputRedirected
bool
System.Console.IsOutputRedirected
static
get
Definition at line
204
of file
Console.cs
.
205
{
206
get
207
{
208
StrongBox<bool>
strongBox =
Volatile
.
Read
(ref
_isStdOutRedirected
) ?? EnsureInitialized();
209
return
strongBox.
Value
;
210
static
StrongBox<bool>
EnsureInitialized()
211
{
212
Volatile
.
Write
(ref
_isStdOutRedirected
,
new
StrongBox<bool>
(ConsolePal.IsOutputRedirectedCore()));
213
return
_isStdOutRedirected
;
214
}
215
}
216
}
System.Console._isStdOutRedirected
static StrongBox< bool > _isStdOutRedirected
Definition
Console.cs:36
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.OpenStandardOutput()
.
System
Console
Generated by
1.10.0