Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Is Better?
Message
From
28/03/2010 11:09:36
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
LINQ
Miscellaneous
Thread ID:
01457640
Message ID:
01457677
Views:
69
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform