IEnumerable - linq select query with where clause
#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
where art.StartsWith("A")
select art;
foreach (var artist in aArt)
{
Response.Write(artist);
Response.Write("<br/>");
}
}
}