How does a lambda in C# bind to the enumerator in a foreach?

后端 未结 5 1832
囚心锁ツ
囚心锁ツ 2020-12-09 18:27

I just came across the most unexpected behavior. I\'m sure there is a good reason it works this way. Can someone help explain this?

Consider this code:



        
5条回答
提交回复
热议问题