Microsoft.Scripting.Runtime.SharedIO.InitializeErrorOutput C# (CSharp) Method

InitializeErrorOutput() private method

private InitializeErrorOutput ( ) : void
return void
        private void InitializeErrorOutput() {
            if (_errorStream == null) {
#if SILVERLIGHT
                Stream errorStream = new TextStream(Console.Error);
#else
                Stream errorStream = Console.OpenStandardError();
#endif
                Interlocked.CompareExchange(ref _errorStream, errorStream, null);
                Interlocked.CompareExchange(ref _errorWriter, Console.Error, null);
            }
        }