Fetching values from collection.

Vishalneeraj-24503
Posted by Vishalneeraj-24503 under LINQ category on | Points: 40 | Views : 338
Write below code:-
string[] Name = { "vishal", "neeraj", "nitin", "rajesk" };
IEnumerable GetResult = (from name in Name
where name.Equals("neeraj")
select name);

foreach (string output in GetResult)
{
Response.Write(output);
}

Comments or Responses

Login to post response