Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Languages you hate

Name: Anonymous 2009-02-13 17:51

Fortransexuals

Name: Anonymous 2009-02-16 21:51

>>61
"select" in C# only appears like an SQL statement, and in some cases it can be, but it's actually part of LINQ, or Language-Integrated Query. .NET comes with support for LINQ to IEnumerable (Array/List/etc.), LINQ to XML (better than DOM!), and LINQ to SQL (better than dealing with real SQL!).

Here's an example of LINQ to IEnumerable.

var list = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
var query = from i in list
            where i > 5
            select i * 2;

foreach(var i in query)
    Console.WriteLine(i);

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List