Archivio Posts |
Anno 2012
Anno 2011
|
|
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...
Categoria: C#
martedì, 05 lug 2011 Ore. 18.17
|
Statistiche |
- Views Home Page: 11.621
- Views Posts: 21.812
- Views Gallerie: 0
- n° Posts: 20
- n° Commenti: 2
|
|