So let's say I'm debugging the following method in a C# program:
int MyMethod()
{
return 0;
}
Is there any way (for example in the watch window?) to execute a statement that will make MyMethod return the value of 1? Or alter the returned value in any way not touching the code at all? (This means that adding int i = 0; return i; and then changing the value of i with the debugger is not an option)