Simplification of a bug that stumped me for 8 hours

static void Main(string[] args) { int j = 7; int returnValue = CheckJ(j); Console.WriteLine(returnValue.ToString()); Console.ReadLine(); } public static int CheckJ(int j) { int toCheck = j; // Conditional Breakpoint: j = 6 return toCheck; } 

by Reelix via /r/csharp

Leave a Reply