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

◆ IsOutputRedirected

bool System.Console.IsOutputRedirected
staticget

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 }
static StrongBox< bool > _isStdOutRedirected
Definition Console.cs:36
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.OpenStandardOutput().