【发布时间】:2016-05-29 04:52:00
【问题描述】:
我开始使用C# Interactive,并且喜欢我可以像使用Immediate 一样浏览和探索一些API 功能,而无需运行和调试我的程序。
问题是它不会像立即一样输出信息,除非我使用变量名执行命令:
> string.Format("{0,15}", 10m); //hit enter, here there is no output
> var a = string.Format("{0,15}", 10m); //hit enter so...
> a // hit enter and...
" 10" //...here the value is shown
>
有没有办法让C# Interactive 像Immediate 那样在每次评估中输出值(并且无需为此编写更多代码,例如Console.Write)?
【问题讨论】:
标签: c# visual-studio-2015 roslyn read-eval-print-loop c#-interactive