Although Visual Studio has always had an Immediate window with limited Read-eval-print loop (REPL) support, Visual Studio 2017 includes an enhanced window with full IntelliSense and color syntax code named C# Interactive.
In Visual Studio 2017, navigate to View | Other Windows | C# Interactive.
We will write some interactive code to download the About page from Microsoft's public website.
At the C# Interactive prompt, we will enter commands to do the following:
- Reference the System.Net.Http assembly
- Import the System.Net.Http namespace
- Declare and instantiate an HTTP client variable
- Set the client's base address to Microsoft's website