Python allows the following: once I open cmd I can start python and then run python commands which return results directly in cmd. For example, I type print word and cmd returns word. Is there a similar thing for C# or the only way to execute C# code is to write it in a file and then compile it?
-
If you search for C# REPL (read-eval-print-loop), you will find several possibilities, both on google and here on StackOverflow. The mono REPL seems to be the most mature, maybe together with LINQPad. We're all waiting for Roslyn though :-)jeroenh– jeroenh2012-12-05 08:48:01 +00:00Commented Dec 5, 2012 at 8:48
Add a comment
|
