C#控制台? [英] C# Console?
问题描述
有人知道是否有一个c#控制台应用程序,类似于Python或Ruby控制台?我知道整个编译与解释的区别,但是用C#的反射力我认为可以做到。
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.
UPDATE
好了,它只花了大约200行,但我写了一个简单的一个...它的工作原理很像osql。您输入命令,然后使用go运行。
UPDATE 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.
如果有人想要,请告诉我。
If anyone wants it, let me know.
推荐答案
由于你提到C#的反射能力,我不确定是否你正在寻找一个交互式的C#控制台的小代码片段(你的Ruby的 irb
) ,或者是与当前作为进程运行的现有已编译应用程序交互的方式。
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 irb
), or a means of interacting with an existing, compiled application currently running as a process.
在前一种情况下:
- Windows PowerShell might be your friend
- Another candidate would be the C# shell
- Finally, CSI, a Simple C# Interpreter
这篇关于C#控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!