foreach loop of variables been changed c# (#3022)
https://stackoverflow.com/questions/12112881/has-foreachs-use-of-variables-been-changed-in-c-sharp-5
This commit is contained in:
parent
02b535d712
commit
0b9e64a3c3
|
@ -50,6 +50,7 @@ Features Added in C# Language Versions
|
|||
# [C# 5](https://blogs.msdn.microsoft.com/mvpawardprogram/2012/03/26/an-introduction-to-new-features-in-c-5-0/) - Visual Studio 2012
|
||||
- Asynchronous methods
|
||||
- Caller info attributes
|
||||
- foreach loop was changed to generates a new loop variable rather than closing over the same variable every time
|
||||
|
||||
# [C# 6](https://github.com/dotnet/roslyn/wiki/New-Language-Features-in-C%23-6) - Visual Studio 2015
|
||||
- [Draft Specification online](https://github.com/dotnet/csharplang/blob/master/spec/README.md)
|
||||
|
|
Loading…
Reference in a new issue