0//用户名大于"滕立"orderbyitem.Keyselectitem;label1.Text="显示查询结果:";foreach(variteminquery)//显示查询结果-IMDN开发者社群-imdn.cn"> 0//用户名大于"滕立"orderbyitem.Keyselectitem;label1.Text="显示查询结果:";foreach(variteminquery)//显示查询结果 - IMDN开发者社群-imdn.cn">
登录
首页 » 其他 » C# 创建泛型字典的例子

C# 创建泛型字典的例子

于 2022-08-02 发布 文件大小:13.91 kB
0 90
下载积分: 2 下载次数: 1

代码说明:

C# 创建泛型字典,为泛型字典添加3个元素,按键值对泛型字典进行排序操作。   Dictionary users = new Dictionary();//创建泛型字典   users.Add(3, new UserInfo(1, "滕*敏", "01"));//为泛型字典添加3个元素   users.Add(2, new UserInfo(2, "滕*娜", "02"));   users.Add(1, new UserInfo(3, "X家兴", "03"));   //按键值对泛型字典进行排序操作   var query = from item in users    where item.Value.UserName.CompareTo("滕*") > 0//用户名大于"滕立"    orderby item.Key    select item;   label1.Text = "显示查询结果: ";   foreach (var item in query)//显示查询结果

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • The use of a simple controller that can be used in the simulation environment
    一个简单使用的控制器,可用在仿真的环境中-The use of a simple controller that can be used in the simulation environment
    2022-09-25 02:45:03下载
    积分:1
  • Mouse programming tht can be added as a component as Graphical Programmin
    Mouse programming tht can be added as a component as Graphical Programmin
    2022-10-19 09:40:03下载
    积分:1
  • 系统清理程序,可以清理系统中的垃圾文件。例如IE的缓存,系统的缓冲区等...
    系统清理程序,可以清理系统中的垃圾文件。例如IE的缓存,系统的缓冲区等
    2022-03-25 16:45:27下载
    积分:1
  • C#五子棋源代码
    C#五子棋源代码,人与电脑对战的五子棋游戏,为了更好的实现游戏逻辑,在界面上没有过多考虑,因此图省事使用了IrisSkin2.dll控件,想自己做界面的可去掉此控件。
    2022-07-26 20:06:52下载
    积分:1
  • TeeChart Pro ActiveX是西班牙Steema SL公司开发的图表类控件,主要用来生成各种复杂的图表。熟悉Delphi和C++ Builder的编...
    TeeChart Pro ActiveX是西班牙Steema SL公司开发的图表类控件,主要用来生成各种复杂的图表。熟悉Delphi和C++ Builder的编程人员对它不会陌生,因为在Delphi和C++ Builder里包括了TeeChart的VCL版本。 TeeChart使用目的 如果你需要在程序中制作曲线图、条状图、饼状图等等,使用这个控件都将是你的明智选择。它因为是已经被封装好的产品,所以使用方便,可控性强,不过有的时候会有点小BUG。最好能找到源码,并自己打几个补丁。-TeeChart Pro ActiveX is a Spanish company has developed a chart Steema SL class control, mainly used to generate all kinds of complicated charts. Are familiar with Delphi and C++ Builder programmers it is not strange, because in Delphi and C++ Builder to include in the VCL version of TeeChart. TeeChart the purpose of use in the program if you need to create graphs, strip chart, pie charts, etc., use this control will be your wise choice. It is because it is has been packaged good products, they are easy to use, control, and strong, but sometimes a bit small BUG. The best source to find and patch a few yourself.
    2022-07-28 01:51:29下载
    积分:1
  • 通过这个程序,你可以实现校园导游功能。数据结构课程设计...
    通过这个程序,你可以实现校园导游功能。数据结构课程设计-Through this program, you can achieve the function of the campus tour guides. Data Structure Course Design
    2022-04-23 11:27:03下载
    积分:1
  • Many people are now using xp system, through this process, we can xp into a non
    很多人现在用的都是xp系统,通过这个程序,我们可以将非正版xp改编成或者伪装成正版xp-Many people are now using xp system, through this process, we can xp into a non-genuine or disguised as genuine xp
    2022-01-28 06:21:39下载
    积分:1
  • MoAspEnginer ASP MVC开发框架 v3.1.1.382
    MoAspEnginer ASP MVC开发框架,一款基于JScript的ASP开源MVC框架。模板编译ASP代码,让ASP代码和程序真正分离,单文件入口,支持类库扩展以及模板自定义标签扩展,支持多数据库操作,支持表单验证,提供HttpRequest,HttpUpload,Soap,OAUTH2.0等模块,提供AES/DES/RC4/Rabbit/pbkdf2/ripemd160等算法,内置Json解析和多种路由方式,支持类库缓存,编译缓存,HTML缓存,数据库Model缓存等。。。让您换一种方式开发ASP应用。   
    2022-05-13 13:02:04下载
    积分:1
  • Screen Chatting source
    Screen Chatting source
    2023-07-05 21:55:03下载
    积分:1
  • tidsp2407汇编程序例程,完整的源代码。
    tidsp2407汇编程序例程,完整的源代码。-tidsp2407 assembler routines, complete source code.
    2023-07-23 17:50:04下载
    积分:1
  • 696518资源总数
  • 105096会员总数
  • 12今日下载