ref variable not updated in watch window after a function has modified it
Options
Verified this code works just fine in c#/real debugger, but in Linqpad the value of sTokens never changes, where it should changed to 'def' based on the real code execution.
Comments
-
Forgot the code, oops.
NotificationTask NT = new NotificationTask();
string sTokens = "#{IFNX~%{value}~def~1~one~2~twoIFNX}#";
NT.AddThisToken("value","0");
NT.ReplaceAllTokens(ref sTokens,false,false,false,false);
NT.AddThisToken("value", "1");
NT.ReplaceAllTokens(ref sTokens, false, false, false, false);
-
Where does this
NotificationTask
class come from? -
Does adding the following code to your query make any difference?
Util.NewProcess = true;