I started dabbling in Windows 8 metro recently, and found that one of my old buddies seems to have gone missing.
I tend to use the .ForEach()
method more than I use the traditional foreach()
construct, and I realized pretty quickly that this method isn't available. For example, this code will not compile under a metro app:
var list = new List<string>();
list.ForEach(System.Diagnostics.Debug.WriteLine);
I've searched to see if I could find any discussion of this, but wasn't able to. Am I just being obtuse, or is it actually gone?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…