Reputation: 19758
Is it possible to have multiple statements on a single line in the Visual Studio Immediate Window for C#?
The following post suggests it's possible for VB: https://stackoverflow.com/a/27554199/216440
However, when I try it in C# I get an End of expression expected
error.
What I've tried is:
var p0 = command.Parameters[0];object v = p0.Value;
where command is a SqlCommand object.
If I split the expressions onto separate lines they each work. However, when they're on the same line, as above, I get that End of expression expected
error.
This is in Visual Studio 2013 Update 5.
Upvotes: 1
Views: 1299
Reputation: 1598
No, as far as I know, the Visual Studio Immediate Window does not support multi-line statements for C#.
Upvotes: 2