See return value in C#

Posted by Snake on Stack Overflow See other posts from Stack Overflow or by Snake
Published on 2010-04-30T08:10:28Z Indexed on 2010/04/30 8:17 UTC
Read the original article Hit count: 397

Filed under:
|
|
|
|

Hi,

Consider the following piece of code: my code

As you can see we are on line 28. Is there any way to see the return value of the function at this point, without letting the code return to the caller function?

Foo.Bar() is a function call which generates a unique path (for example). So it's NOT constant.

In VB.NET it's possible by entering the function's name in the Watch, which will then threat it as a variable.

But in C# this is not possible, any other tips?

PS: rewriting is not an option.

© Stack Overflow or respective owner

Related posts about c#

Related posts about value