linq to object的第一个例子
MethodInfo[] methods = typeof(string).GetMethods();
var result = from m in methods
where m.IsStatic != true
select m.Name ;
foreach (var r in result)
{
Response.Write(r+"<br>");
}
关键词有: from
in
where
select
posted on 2008-08-12 22:26 Love Fendi 阅读(178) 评论(0) 编辑 收藏 举报