IEnumerable - Linq select query

Ranjeet_8
Posted by Ranjeet_8 under LINQ category on | Points: 40 | Views : 1072
IEnumerable - Linq select query
#Code Behind

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string[] MArt = { "Artists", "Musical", "Musical Artists", "Artists Musical" };
IEnumerable<string> aArt =
from art in MArt
select art;
foreach (var artist in aArt)
{
Response.Write(artist);
Response.Write("<br/>");
}
}
}

Comments or Responses

Login to post response