Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
This simple class is used by the Mathematica function ShowNETConsole, but you can also use it in .NET programs. It is particularly useful in Windows applications (as opposed to console applications), which typically do not have the Console.Out and Console.Error streams defined.
This class is a singleton, and you interact with it mainly through static methods and properties. To acquire a reference to the singleton instance, use the Instance property. Here is a typical C# code fragment demonstrating how to use this class: