dotnet try This is an interactive Try .NET editor. This code in another file. They compile and execute together when you you click the run button.