-
C# 泛型列表List用法示例
C# 泛型列表List用法示例,从给出的人员名单中,过滤人员名称中以"科"结束的序列,遍历查询结果。
private void Frm_Main_Load(object sender, EventArgs e)
{
List People = new List{//创建人员列表
new Person(1,"王*科"),
new Person(2,"王*科"),
new Person(3,"赵*东")};
var query = from p in People//过滤人员名称中以"科"结束的序列
where p.Name.EndsWith("科")
select new
{
人员ID = p.ID,
人员姓名 = p.Name
};
foreach (var item in query)//遍历查询结果
{
label1.Text += item + "
";
}
}
}
public class Person
{
public Person(int id, string name)
{
this.ID = id;
this.Name = name;
}
public int ID { get; set; }//人员ID
public string Name { get; set; }//人员姓名
}
- 2023-01-08 20:45:03下载
- 积分:1
-
ACS580使用说明书
说明: 本手册提供规划安装、安装、调试、使用和维修传动所需的信息(This manual provides information needed for planning installation, installation, commissioning, use and maintenance of the transmission)
- 2020-06-22 09:00:02下载
- 积分:1
-
avopp
这是美国科罗多矿院的Zoeppritz方程的精确反射系数的Matlab代码,同时包含有AKI-RICHARDS,Shuey方程等的反射系数,美国人写的相当详细,非常好用。欢迎下载。(This is the exact reflection coefficient Zoeppritz equation of the United States Colorado Institute Matlab code, including AKI-RICHARDS, Shuey reflection coefficient equation)
- 2017-12-14 22:13:27下载
- 积分:1
-
attributes
说明: CUB_鸟类数据标注,每张图312特征,共计200分类(class_attribute_labels_continuous)
- 2020-06-22 18:40:01下载
- 积分:1
-
Test
Priorities:
1) Keep It Simple
2) Do not couple to any specific unit test framework.
- use appropriate IdTest.pas units to plug into required framework.
Units are named IdTest*, so they can be easily searched/listed.
eg using UnitExpert (http://www.epocalipse.com/downloads.htm) ctrl-u, "idtest", lists all available test units.
(Priorities:
1) Keep It Simple
2) Do not couple to any specific unit test framework.
- use appropriate IdTest.pas units to plug into required framework.
Units are named IdTest*, so they can be easily searched/listed.
eg using UnitExpert (http://www.epocalipse.com/downloads.htm) ctrl-u, "idtest", lists all available test units.
)
- 2009-09-14 16:21:13下载
- 积分:1
-
各种 C 程序
在计算中,C (/ˈsiː/,如字母 C 所示) 是一种通用的编程语言,最初由丹尼斯 · 里奇 1969 年至 1973 年在 At&t 贝尔实验室。[] 5[6] 象 ALGOL 传统中的大多数命令式语言,C 拥有结构化编程的设施,并允许可变的词法范围和递归,而静态类型系统可以防止许多意料之外的行动。它的设计提供映射高效地对典型的构造机的说明,并因此发觉有持久的应用程序中的使用,以前曾被编码在汇编语言中,最引人注目的是系统软件 (如 Unix 计算机操作系统。[] 7C 是一种最广泛使用的编程语言的所有时间,[8] [9],C 编译器可供广大的 availablecomputer 体系结构和操作系统。许多后来的语言已从 C、 D、 去锈、 Java、 JavaScript、 凌波、 LPC、 C# 中,其中包括借来直接或间接目标 C、 Perl、 PHP、 蟒蛇皮、 Verilog (硬件描述语言),[4] 和 Unix 的 C shell。这些语言有吸引了大批的 theircontrol 结构和其他基本功能从 c。其中大部分 (和 Python 是最引人注目的例外) 一般情况下,也是 verysyntactically 的类似于 C,他们倾向于找到可识别的表达式和语句语法的 C 结合基础类型系统、 数据模型以及可以从根本上不同的语义。C + + 和目标 C 起家的编译器生成的 C 代码 ;C + + 是目前近 C,[10] 虽然目标 C 是 C.[11] 的严格超集的超集
- 2022-02-12 13:15:32下载
- 积分:1
-
一个汉字任意点阵字库制作软件,它的主要功能就是把windows用中使用的矢量的ASCII码和汉字转换为点阵的英文点阵字库和汉字点阵字库...
一个汉字任意点阵字库制作软件,它的主要功能就是把windows用中使用的矢量的ASCII码和汉字转换为点阵的英文点阵字库和汉字点阵字库-an arbitrary lattice Chinese character production software Its main function is to the use of windows with the vector of ASCII conversion of Chinese and the British lattice Dot-matrix text font and font Chinese lattice
- 2022-06-01 11:36:28下载
- 积分:1
-
未来之战修改脚本
漫威未来之战脚本源码,修改器,脚本,支持全部英雄修改,能量,力量,能量防御,力量防御修改.未来之战英雄属性修改脚本.
附所有英雄ID对照表.(mobirum, ganeguardian,ggScript)
- 2021-04-15 00:18:55下载
- 积分:1
-
Alizi-A2-V3.2_30570
说明: 阿狸子订单系统3.2,未破解的源码系统,很好用(Ali son 3.2, to crack)
- 2020-10-07 16:17:37下载
- 积分:1
-
adrc_eso3
说明: 对于二阶系统G(s)=wc^2/(s+wc)^2,设计的ADRC的仿真程序。(The simulation program of ADRC for the second order system G(s)=wc^2/(s+wc)^2.)
- 2020-01-13 22:06:59下载
- 积分:1