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);
查看全文
相关阅读:
DevExpress RichEditControl 上下翻页功能 z
DockManager 如何快速隐藏DockPanel z
DevExpress SpreadSheet报表模板设置 z
DocumentManager在标签位置显示气泡框 z
C#,数据类型扩展 z
[安卓] 6、列表之ArrayAdapter适配
[安卓] 5、SeekBar拖动条
[安卓] 4、CheckBox、RadioButton和Toast简单用法
[安卓] 3、EditText使用小程序
[安卓] 2、使用2中方法做按钮监听和图片按钮使用
原文地址:https://www.cnblogs.com/anders06/p/1516805.html
最新文章
response.setHeader()的用法
解决eclipse安装maven的问题:Unable to update index for central|http://repo1.maven.org/maven2
<jsp:directive.page import=""/>的用法和解释
ExtJS BorderLayout
ExtJS创建选项卡
Ext Connection
Android图片加载框架最全解析(三),深入探究Glide的缓存机制
Android图片加载框架最全解析(一),Glide的基本用法
Android 简单介绍图片压缩和图片内存缓存
TextView设置最多显示指定个字符,超过部分显示...(省略号)
热门文章
Google推荐的图片加载库Glide介绍
单臂哑铃划船
杠铃俯身划船:杠铃俯身划船动作详解教程
坐姿绳索划船
坐姿下拉
TPL中限制进程数量
DockManager如何停靠 z
wpf z
DevExpress 利用DateEdit 仅显示和选择年份 z
DevExpress Components16.2.6 Source Code 编译
Copyright © 2011-2022 走看看