zoukankan
html css js c++ java
Linq Coding Part One
Linq Search Process
Linq To ArrayList
public
class
Student
{
public
String FirstName
{
get
;
set
; }
public
String LastName
{
get
;
set
; }
public
Int32[] Scores
{
get
;
set
; }
}
public
class
LinqToArrayList : Interface
{
Interface Members
#region
Interface Members
public
void
invoke()
{
ArrayList arrList
=
new
ArrayList();
arrList.Add(
new
Student
{
FirstName
=
"
Svetlana
"
,
LastName
=
"
Omelchenko
"
,
Scores
=
new
int
[]
{
98
,
92
,
81
,
60
}
}
);
arrList.Add(
new
Student
{
FirstName
=
"
Claire
"
,
LastName
=
"
O’Donnell
"
,
Scores
=
new
int
[]
{
75
,
84
,
91
,
39
}
}
);
arrList.Add(
new
Student
{
FirstName
=
"
Sven
"
,
LastName
=
"
Mortensen
"
,
Scores
=
new
int
[]
{
88
,
94
,
65
,
91
}
}
);
arrList.Add(
new
Student
{
FirstName
=
"
Cesar
"
,
LastName
=
"
Garcia
"
,
Scores
=
new
int
[]
{
97
,
89
,
85
,
82
}
}
);
var query
=
from Student student
in
arrList
where
student.Scores[
0
]
>
95
select student;
foreach
(Student s
in
query)
Console.WriteLine(s.LastName
+
"
:
"
+
s.Scores[
0
]);
Console.WriteLine(
"
press any key to exit.
"
);
Console.ReadKey();
}
#endregion
}
LINQ Coding 目录
Linq Coding -- Part One
Linq Coding -- Part Two[标准查询运算符]
Linq Coding -- Part Three [Let子句]
Linq Coding -- Part Four[Concat应用]
Linq Coding -- Part Five (Join之内部联接查询)
Linq Coding -- Part Six (Join之分组联接)
Linq Coding -- Part Seven (Join之左外部联接、DefaultIfEmpty、GroupJoin)
查看全文
相关阅读:
(转)MP4文件两种格式AVC1和H264的区别及利用FFMPEG demux为h264码流事项
(转)【多媒体封装格式详解】--- AAC ADTS格式分析
(转)使用FFMPEG类库分离出多媒体文件中的H.264码流
(转)ffmpeg 从mp4上提取H264的nalu
(原)hisi3531立体声pcm实现播放方式
(转)关于yuv 格式:planar和semi-planar格式
(转)LCD:LCD常用接口原理篇
Instrumentation 两种方法 premain Agent
解决-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variabl
Java反射机制获取Class文件
原文地址:https://www.cnblogs.com/RuiLei/p/1081882.html
最新文章
Spring 定时任务 注解版
PL-SQL Developer 配置使用Oracle客户端连接
Error:java: Compilation failed: internal java compiler
JDK1.7 和JDK1.8同时存在设置默认的JDK
迅速解决!!!!!启动Tomcat报错PermGen space
Ideal 使用帮助手册
maven 引入的jar有出现两种图标
一秒解决--------No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Ideal设置编码格式
Qt Quick 常用元素:TabView(选项卡) 与 Slider(滑块)
热门文章
Qt Quick 常用元素:ComboBox(下拉列表) 与 ProgressBar(进度条)
Qt Quick 常用元素:RadioButton(单选框),CheckBox(复选框) 与 GroupBox(分组框)
Qt Quick 常用元素:Textinput 与 TextEdit 文本编辑框
Qt Quick 基本元素初体验
Qt Quick 布局介绍
Qt Quick 组件与动态对象
Qt Quick 事件处理之鼠标、键盘、定时
Qt Quick 事件处理之信号与槽
(原)从mp4,flv文件中解析出h264和aac,送解码器解码失败
(转) 解密H264、AAC硬件解码的关键扩展数据处理
Copyright © 2011-2022 走看看