Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
IsInputRedirected
bool
System.Console.IsInputRedirected
static
get
Definition at line
190
of file
Console.cs
.
191
{
192
get
193
{
194
StrongBox<bool>
strongBox =
Volatile
.
Read
(ref
_isStdInRedirected
) ?? EnsureInitialized();
195
return
strongBox.
Value
;
196
static
StrongBox<bool>
EnsureInitialized()
197
{
198
Volatile
.
Write
(ref
_isStdInRedirected
,
new
StrongBox<bool>
(ConsolePal.IsInputRedirectedCore()));
199
return
_isStdInRedirected
;
200
}
201
}
202
}
System.Console._isStdInRedirected
static StrongBox< bool > _isStdInRedirected
Definition
Console.cs:34
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.OpenStandardInput()
.
System
Console
Generated by
1.10.0