Search code examples
c#visual-studio-debugging

Same name in parameter in two different methods


Please note this picture enter image description here I set break point in top method.but if look at the bottom method's parameter you can see value off top method.I know this is because naming but i want to know why?Related with CLR or compiler?


Solution

  • Visual Studio identifies what symbol you're hovering. It will find the string "conference". To display the value, the debugger will look for a symbol with that name in the current scope.