C# Tutorial - .NET 3.5


The most recent release of the .NET Framework brings us a new extension to C# with C# 3.0 and LINQ. LINQ stands for Language-Integrated Query and is a combination of namespaces and C# 3.0 language enhancements. These enhancements give .NET some general-purpose query facilities that apply to all sources of information, including SQL and XML data.

A simple query may look like this:

IEnumerable query = from s in names 
                            where s.Length == 5
                            orderby s
                            select s.ToUpper();

Which is similar in nature to standard a SQL query.


<< Previous Contents Next >>

© Publicjoe, 2008