Anders Hejlsberg's C# 4.0 REPL

前端 未结 10 733
甜味超标
甜味超标 2020-12-13 04:05

During the last 10 minutes of Ander\'s talk The Future of C# he demonstrates a really cool C# Read-Eval-Print loop which would be a tremendous help in learning the language.

10条回答
  •  难免孤独
    2020-12-13 04:49

    Command-line REPL

    To play with the C# REPL outside of Visual Studio, open the Developer Command Prompt for VS2015 and type the command csi to begin your interactive session. Here is a list of arguments that can be passed to csi.

    Note: csi stands for "CSharp Interactive"

    You can also open an interactive window directly from Visual Studio by navigating to View > Other Windows > C# Interactive.

    Check out the Roslyn Wiki on the C# Interactive Window.

提交回复
热议问题