When using Visual Studio 2015:
You can open the Interactive window by navigating to Views > Other Windows > C# Interactive,
Then just right click your project and run Initialize Interactive with Project from the context menu.
For older versions:
To use the C# Interactive Window with your code, ensure you first compile your code, then add a reference to the resulting assembly with the #r
command like so:
You can also use the Immediate Window to interact with your code as well, like so:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…