Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which Is Better?
Message
De
28/03/2010 11:09:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Divers
Thread ID:
01457640
Message ID:
01457677
Vues:
70
>Is there any advantage to using Linq to iterate through the rows in a datatable, versus foreach?

The advantage comes from being Language Integrated and still be an object query language. Comparing to foreach() doesn't really make sense. It provides the IEnumerable to foreach to use. Linq can provide filtering and much more even for a dataset.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform