I was just debugging code that looked like this:
string someValue = _snuh.FindItem(id).Value;
I wanted to check the return value of FindItem() (it returns Foo ), so I split the code into two lines:
Foo foo = _snuh.FindItem(id); string someValue = foo.Value;
This allowed me to look at foo in the debugger; which I could not do when the code was on the same line.
Now that I have finished debugging, should I return the code as it was, or leave it as two lines?
source share