Using Multiple-where Clause C# with Example



Using Multiple-where Clause C# with Example

 using System;
using System.Linq;

namespace CSharpLINQ
{
    class SimpleQuery
    {
		static void Main( )
		{
			int[] numbers = { 1, -2, 3, -3, 0, -8, 12, 19, 6, 9, 10 };
			
			var query = from n in numbers where n>0 where n<12 select n;
			
			foreach (var q in query)
				Console.Write("{0}\t", q);
		}
    }
}
 

0 Comment's

Comment Form

Submit Comment