From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Use the C# interactive window

Use the C# interactive window - Visual Studio Tutorial

From the course: Visual Studio Developer Tips

Use the C# interactive window

- [Instructor] Programming tools like F#, Python, and PowerShell support interactive capabilities where the programmer can perform rapid prototyping work and interactive debugging. In this tip, I'll look at the C# interactive window in Visual Studio. It adds this interactive capability for C# code to the IDE. It provides a place to experiment with code snippets, try out API calls, and verify method results. There's a legacy name for this type of interactive window. Read, Eval, Print, Loop, known by the acronym R-E-P-L and pronounced REPL. There are other REPL windows in Visual Studio you might have used. I'm referring to the immediate and command windows. But for this tip I'll focus mostly on the C# interactive window. I've got two of these windows open in my Visual Studio 2017 instance. I've got the immediate window on the right side on the bottom and on the left side is the C# interactive window. I'll use the immediate window at the beginning of this tip to show some of its limited…

Contents