-1

Is there a way to use C# interactively, inside a REPL environment like Python?

wassimans
  • 8,382
  • 10
  • 47
  • 58
  • possible duplicate of [Is there an interactive interpreter for C#?](http://stackoverflow.com/questions/2058715/is-there-an-interactive-interpreter-for-c) – Helen Feb 24 '12 at 11:36

3 Answers3

2

Have a look at C# script: http://www.csscript.net/

jdehaan
  • 19,700
  • 6
  • 57
  • 97
1

If by interactively you mean not having to manually compile or run as a console application, then yes. There are several tools that allow this.

The best, imo, is LinqPad. See: http://www.linqpad.net/

RMD
  • 3,421
  • 7
  • 39
  • 85
1

Mono offers some ways you can consider take a look at http://www.mono-project.com/CsharpRepl

kenny
  • 21,522
  • 8
  • 49
  • 87
  • 2
    Mono--its not just for linux devs. –  Feb 07 '11 at 18:53
  • There is not a Windows version as I know. Am I right? – wassimans Feb 07 '11 at 19:32
  • @Wassim, I haven't tried it. But, .NET applications in general are not *not* Windows or any platform specific. Unless they p-invoke or use a library with platform only features. – kenny Feb 07 '11 at 19:53
  • Found this thread looking for the answer. http://stackoverflow.com/questions/2058715/is-there-an-interactive-interpreter-for-c – kenny Feb 07 '11 at 19:56