<p>Does anyone know if there is a c# Console app, similar to the Python or Ruby console? I know the whole "Compiled versus Interpreted" difference, but with C#'s reflection power I think it could be done.</p>

<p><strong>UPDATE</strong>
Well, it only took about 200 lines, but I wrote a simple one...It works a lot like osql. You enter commands and then run them with go.</p>

<p><a href="http://www.gfilter.net/junk/sharpconsole.jpg">SharpConsole http://www.gfilter.net/junk/sharpconsole.jpg</a></p>

<p>If anyone wants it, let me know.</p>

[{'answer_id': 47548, 'author': 'Sören Kuklau', 'author_id': 1600, 'author_profile': 'https://Stackoverflow.com/users/1600', 'pm_score': 5, 'selected': True, 'text': '<p>Given your mention of "C#\'s reflection power", I am unsure whether you\'re looking for an interactive C# console for small code snippets of your own (à la Ruby\'s <code>irb</code>), or a means of interacting with an existing, compiled application currently running as a process.</p>\n\n<p>In the former case:</p>\n\n<ul>\n<li><strong>Windows PowerShell</strong> might be your friend</li>\n<li>Another candidate would be the <a href="http://michael.susens-schurter.com/blog/2006/12/20/cssh-c-shell/" rel="noreferrer"><strong>C# shell</strong></a></li>\n<li>Finally, <a href="http://www.codeproject.com/KB/cs/csi.aspx" rel="noreferrer"><strong>CSI</strong></a>, a Simple C# Interpreter</li>\n</ul>\n'}, {'answer_id': 47559, 'author': 'LJ.', 'author_id': 4849, 'author_profile': 'https://Stackoverflow.com/users/4849', 'pm_score': 1, 'selected': False, 'text': '<p>Google reveals a few efforts at this.  One in particular illustrates why this is less straightforward than it might seem.  <a href="http://www.codeproject.com/KB/cs/csi.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/cs/csi.aspx</a> has a basic interpreter using .NET\'s built in ability to compile c# code.  A key problem is that the author\'s approach creates a new mini .NET assembly for each interpreted line.  C# may have the reflective power to have a python or ruby style console, but the .NET framework libraries are geared toward compiling C#, not dynamically interpreting it.  If you are serious about this, you may want to look at <a href="http://www.paxscript.net/" rel="nofollow noreferrer">http://www.paxscript.net/</a>, which seems like a genuine attempt at interpreted C#. </p>\n'}, {'answer_id': 47713, 'author': 'Dale Ragan', 'author_id': 1117, 'author_profile': 'https://Stackoverflow.com/users/1117', 'pm_score': 3, 'selected': False, 'text': '<p>I am not sure what you are looking for this application to accomplish.  If it is just to try some code without having to create a project and all the overhead to just test an idea, then <a href="http://www.sliver.com/dotnet/SnippetCompiler/" rel="nofollow noreferrer">SnippetCompiler</a> could be a good fit.</p>\n\n<p>I just wanted to give you another option.</p>\n'}, {'answer_id': 51300, 'author': 'Daren Thomas', 'author_id': 2260, 'author_profile': 'https://Stackoverflow.com/users/2260', 'pm_score': 3, 'selected': False, 'text': '<p>Found this on reddit: <a href="http://tirania.org/blog/archive/2008/Sep-08.html" rel="nofollow noreferrer">http://tirania.org/blog/archive/2008/Sep-08.html</a></p>\n\n<p>Quote from the site:</p>\n\n<blockquote>\n  <p>The idea was simple: create an interactive C# shell by altering the compiler to generate and execute code dynamically as opposed to merely generating static code. </p>\n</blockquote>\n'}, {'answer_id': 52728, 'author': 'FlySwat', 'author_id': 1965, 'author_profile': 'https://Stackoverflow.com/users/1965', 'pm_score': 2, 'selected': False, 'text': '<p>It appears Miguel De Icaza was stalking me:</p>\n\n<p><a href="http://tirania.org/blog/archive/2008/Sep-08.html" rel="nofollow noreferrer">http://tirania.org/blog/archive/2008/Sep-08.html</a></p>\n'}, {'answer_id': 203163, 'author': 'AR.', 'author_id': 1354, 'author_profile': 'https://Stackoverflow.com/users/1354', 'pm_score': 3, 'selected': False, 'text': '<p>If you don\'t <em>have</em> to use the console, and just want a place to test some ad hoc C# snippets, then <a href="http://www.linqpad.net/" rel="noreferrer">LinqPad</a> is a good option. I find it very cool/easy to use.</p>\n'}, {'answer_id': 518537, 'author': 'aleemb', 'author_id': 50475, 'author_profile': 'https://Stackoverflow.com/users/50475', 'pm_score': 1, 'selected': False, 'text': '<p>I believe you are looking for <a href="http://www.codeplex.com/snippy" rel="nofollow noreferrer">Snippy</a> =)</p>\n\n<p><img src="https://aleembawany.com/wp-content/uploads/2009/02/snippy.jpg" alt="Snippy Screenshot"></p>\n'}]
['https://Stackoverflow.com/questions/47537', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1965/']