2010 | OriginalPaper | Chapter
Hello LINQ
Activate our intelligent search to find suitable subject content or patents.
Select sections of text to find matching patents with Artificial Intelligence. powered by
Select sections of text to find additional relevant content using AI-assisted search. powered by
Did you just feel
your
world shift? As a. NET developer, you should have. With the trivial programming example in Listing 1-1, you just ran what somewhat appears to be a Structured Query Language (SQL) query on an array of strings.
1
Check out that where clause. If it looks like we used the EndsWith method of a string object, it’s because we did. You may be wondering, what is with that variable type var? Is C# still performing static type checking? The answer is yes; it still statically checks types at compile time. What feature of C# is allowing all of this? The answer is Microsoft’s Language Integrated Query, otherwise known as LINQ.