Using More Than One From Clause In LINQ
using System;
using System.Linq;
class MoreThanOneFromInLINQ
{
static void Main()
{
string[] firstname= {"Amit","Rajat","Rajan"};
string[] lastname = {"Sharma","Verma","Saini"};
var result = from fn in firstname
from ln in lastname
select new {Name= fn+ " " + ln};
foreach(var r in result)
Console.WriteLine("Name is " + r.Name);
}
}
OUTPUT
Using More Than One From Clause In LINQ
Reviewed by Baljeet Singh
on
13:12
Rating:
No comments: