Tuesday, December 11, 2007

Lets talk LINQ

Recently, i was watching some interviews of Anders Hejlsberg about LINQ. LINQ stands for Language INtegrated Query. Simply it allows the programmer to perform queries on any object in .NET. And we start seeing those lovely pecies of code
int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };

var lowNums =
from n in numbers
where n <>
select n;
It’s really amazing! Instead of writing many lines of brain twisting code we can use LINQ.

Thanks Anders.

LINQ in C#

No comments: