When you are done with the expression (for example, ending with ; ), which you should when declaring variables, you will not get any output, since it should have only side effects.
When you are done with the expression (for example, not ending ; ), you will get the result of this expression. Workaround:
var a = string.Format("{0,15}", 10m); a
Notice a as an expression at the end, you get its value.
Personally for multi-line snippets that I want to check, I usually have a res variable:
object res; // code where I set res = something; using (var reader = new System.IO.StringReader("test")) { res = reader.ReadToEnd(); } res
Input overhead occurs once for a Visual Studio session, but then I just use Alt + β to select one of the previous entries.
acelent
source share