How to Write Messages to Output Window in Visual Studio 2013?

There are times when you want to write and view the programs output in the Output Window of Microsoft Visual Studio.

In this case, you can use the System.Diagnostics.Debug.WriteLine function to write messages to the Output Window of Visual Studio. This trick is applicable in all versions of Visual studio like Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 etc.

System.Diagnostics.Debug.WriteLine ("This is a program by abundantcode.com");