Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsInputRedirected

bool System.Console.IsInputRedirected
staticget

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 }
static StrongBox< bool > _isStdInRedirected
Definition Console.cs:34
static bool Read(ref bool location)
Definition Volatile.cs:67
static void Write(ref bool location, bool value)
Definition Volatile.cs:74

Referenced by System.ConsolePal.OpenStandardInput().