会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
空心菜
菜鸟园
博客园
首页
新随笔
联系
订阅
管理
2011年8月26日
Union合并数组(去掉重复的项目)
摘要: string[] a = {"a", "b"}; string[] b = { "b", "c", "d" }; var data = (from t1 in a select t1).Union(from t2 in b select t2); foreach (var str in data) { MessageBox.Show(str); }
阅读全文
posted @ 2011-08-26 13:52 litsword
阅读(936)
评论(0)
推荐(0)
编辑
公告