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

◆ IsErrorRedirected

bool System.Console.IsErrorRedirected
staticget

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 }
static StrongBox< bool > _isStdErrRedirected
Definition Console.cs:38
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.OpenStandardError().