C# Tips – Using delegate in List.Find() predicate
If we had at hand a functional language (eg Lisp), so we can easy manipulate a collection or list.With the. NET Framework 2.0, we can also work in a more functional mode with Generics (exploring). Using this feature of the CLR we can process our data in a much more immediate, especially with anonymous delegates.An example that I propose, and is also the most common situation is that I've developed is the use of these delegates to the search function Find() for a generic list (List<T>)View Leggi tutto il post...
martedì, 05 lug 2011 Ore. 18.17
- Views Home Page: 2.489
- Views Posts: 4.652
- Views Gallerie: 0
- n° Posts: 20
- n° Commenti: 1