string[] s = { "test", "hello world", "mamma", "zack", "aaa","xxx" };
// LINQ
var subset = from z in s where z != "hello world"
orderby z descending select z;
int i = 0;
foreach (var l in subset)
{
Response.Write("Item " + i.ToString() + " = " + l + "<br />");
i++;
}
No comments:
Post a Comment