Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List<T>.Find method in Metro apps

I'm wondering why List<T>.Find is not available when creating a Metro application in C#. It's still in .NET Framework 4.5 (Windows Forms, WPF) but not in Metro style applications. Is there an alternative or is there just not going to be a find method?

like image 778
Metod Medja Avatar asked Feb 23 '23 22:02

Metod Medja


1 Answers

Its a choice MSFT made. Just use Linq's FirstOrDefault or SingleOrDefault.

It surely sounds like they are doing a lot of cleanup...

like image 154
Daniel A. White Avatar answered Mar 08 '23 16:03

Daniel A. White