OWASP O2 Platform Blog

How to use the Console output in the C# REPL

TheĀ VisualStudio C# REPL – O2 Platform can be downloaded here. From the download link you get a Visual Studio Extension (.vsix file extension).

Image

Since this REPL is a great tool for developers, I wanted to use the Console output feature, the following code snippet shows how to achieve this functionability:

var topPanel = "Util - ConsoleOut".popupWindow(500,300);
topPanel.add_ConsoleOut();
//O2File:API_ConsoleOut.cs
Console.WriteLine("This text should be displayed in the Console");

This code produces the following output:

Image

This is a powerful (and easy) feature that can help us to take advantage of the time šŸ™‚

November 9, 2012 Posted by | .NET, Uncategorized, VisualStudio | , , | Leave a comment