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 阅读(184) 评论(0) 收藏 举报
浙公网安备 33010602011771号