Thats because row and col values are not being used right away. Those are being used when we click on the cell, and when we click the cell at that time row and col both have value 3. For local copies, when he said var r= row; the row variable was used right away and set current row value to this new variable r
Nothing to do with Blazor per se. This is how C#, lambdas and variable capture work everywhere.
Exactly, thanks
Thank you for sharing. I've not come accross this error yet but now I know what to do if I do.
Why is this the case where both variables are int and therefore value types?
Thanks a lot Patrick
So does that mean all Lambda expressions use the reference of a var?
Is it something called as "closure"?
Thanks.
Is there another way to pass the parameters without creating local copies of them?
thanks for sharing
i get this error from two months ago and cannot solve it
thank you very much for your help
Thats because row and col values are not being used right away. Those are being used when we click on the cell, and when we click the cell at that time row and col both have value 3.
For local copies, when he said var r= row; the row variable was used right away and set current row value to this new variable r
You are a god, Patrick 😅
Hi patrick , can you please make a video on how can we use ajax in blazor..
Thanks in advance