zoukankan
html css js c++ java
SelectMany
string
[] presidents
=
{
"
Adams
"
,
"
Arthur
"
,
"
Buchanan
"
,
"
Bush
"
,
"
Carter
"
,
"
Cleveland
"
,
"
Clinton
"
,
"
Coolidge
"
,
"
Eisenhower
"
,
"
Fillmore
"
,
"
Ford
"
,
"
Garfield
"
,
"
Grant
"
,
"
Harding
"
,
"
Harrison
"
,
"
Hayes
"
,
"
Hoover
"
,
"
Jackson
"
,
"
Jefferson
"
,
"
Johnson
"
,
"
Kennedy
"
,
"
Lincoln
"
,
"
Madison
"
,
"
McKinley
"
,
"
Monroe
"
,
"
Nixon
"
,
"
Pierce
"
,
"
Polk
"
,
"
Reagan
"
,
"
Roosevelt
"
,
"
Taft
"
,
"
Taylor
"
,
"
Truman
"
,
"
Tyler
"
,
"
Van Buren
"
,
"
Washington
"
,
"
Wilson
"
}
;
IEnumerable
<
char
>
chars
=
presidents.SelectMany(p
=>
p.ToArray());
Employee[] employees
=
Employee.GetEmployeesArray();
EmployeeOptionEntry[] empOptions
=
EmployeeOptionEntry.GetEmployeeOptionEntries();
var employeeOptions
=
employees
.SelectMany(e
=>
empOptions
.Where(eo
=>
eo.id
==
e.id)
.Select(eo
=>
new
{
id
=
eo.id,
optionsCount
=
eo.optionsCount }
));
foreach
(var item
in
employeeOptions)
Console.WriteLine(item);
查看全文
相关阅读:
Linux curl使用简单介绍
SecureCRT编码转换vim
BigTable/HBase基本概念解读 & Hbase shell常用命令
Crontab用法说明(Linux)
Sina SSO 登陆过程分析
浅谈队列
搞怪的 log4net 记录日志 性能测试
iBatis.Net异步多线程 操作Ibatis报错
高并发高负载的大型网站系统架构
[置顶] IIs Web 站点安全 监控 站点自动部署 重启
原文地址:https://www.cnblogs.com/anders06/p/1516805.html
最新文章
WinForm客户端调用 WebService时 如何启用Session
利用jquery实现Ajax并用json2.js对返回的json进行转换操作
连接excel2003、2007以上版本的excel的方法,返回一个连接字符串
.net网站验证方式
WebService三种验证方式
一道初等几何题
(转)LAMP网站架构方案分析
Best Practices for Speeding Up Your Web Site(转)
(转)编译体会
(转)十大网站管理员的服务器工具软件
热门文章
(转)从程序员角度看ELF译文
(转)PHP开发者常犯的10个MySQL错误
(转)MySQL常用维护管理工具
(转)开源史上最成功的八个开源软件
php中的堆栈调试【转】
shell十三问 exec 跟 source 差在哪
Vim文件编辑命令(Linux)
shell 函数返回值的方法
TCP长连接和短连接
oracle启动关闭(Linux)
Copyright © 2011-2022 走看看