14
foreach vs someList.ForEach () {}
Aparentemente, existem várias maneiras de interagir com uma coleção. Curioso se houver alguma diferença, ou por que você usaria um caminho sobre o outro. Primeiro tipo: List<string> someList = <some way to init> foreach(string s in someList) { <process the string> } Outro jeito: List<string> someList = <some way to …
167
c#
.net
generics
loops
enumeration