Tag Archive

.NET – LINQ in C#

Published on March 26, 2008 By admin

LINQ (Language integrated Query) string[] numbers = { "0042", "010", "9", "27" }; int[] nums = numbers.Select(s => Int32.Parse(s)).ToArray(); foreach (var num in nums) Console.WriteLine(num); What where LINQ is useful? LINQ to Objects – LINQ to XML – LINQ to SQL – LINQ to DataSet Perform set operations on sequences of DataRow objects. Retrieve and [...]