Object Oriented Programming interview questions with examples step by step from basic to advance.
public void LinqWhereCondition() { int[] nums = { 5, 3, 1, 4, 9, 0, 6, 2, 7, 8 }; var lowNums = from n in nums where n < 5 select n; Console.WriteLine("Numbers < 5:"); foreach (var j in lowNums) { Console.WriteLine(j); } }
No comments:
Post a Comment