码迷,mamicode.com
首页 >  
搜索关键字:linq to objects    ( 10076个结果
linq 对象属性排序
WSWSVoucher [] wswsv = new WSWSVoucher[4];wswsv= wswsv.OrderBy(s => s.creditAmount).ToArray();wswsv= wswsv.OrderByDescending(s => s.creditAmount).ToAr...
分类:其他好文   时间:2014-06-26 00:44:03    阅读次数:220
对象的思考1
一个对象能自己能否作为自己的一个成员?using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApp...
分类:其他好文   时间:2014-06-26 00:27:11    阅读次数:169
.Net执行cmd命令
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using ...
分类:Web程序   时间:2014-06-25 21:16:23    阅读次数:263
Application.LoadLevel & Object.DontDestroyOnLoad
【Application.LoadLevel】 只有在File->Build Setting中设置了的按钮才能被加载。 当level加载完成后,MonoBehaviour.OnLevelWasLoaded is called on all active game objects。 When...
分类:移动开发   时间:2014-06-25 19:43:36    阅读次数:254
iTextSharp 读出,写入
版本为5.1.2using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Sys...
分类:其他好文   时间:2014-06-25 15:13:27    阅读次数:207
.net之特性(Attribute)
看了一些关于这方面的文档,自我总结: 特性(Attribute)就是对一个方法或类做的一个额外的属性说明,也就是附加说明下面是我自己抄的一个实例程序:using System;using System.Collections.Generic;using System.Linq;using Syst....
分类:Web程序   时间:2014-06-25 14:18:02    阅读次数:161
C#发送邮件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Mail;namespace SendMessage{ class SendEmail {...
分类:其他好文   时间:2014-06-25 12:04:19    阅读次数:251
18 如何从一个数组中移除重复的元素
两种方法 (1) 使用LINQ (2) 使用List static void RemoveDups(string[] myStringArray) { // LINQ string[] str = myStringArray.Distinct().ToArray(); ...
分类:其他好文   时间:2014-06-25 00:00:39    阅读次数:194
LINQ to SQL和Entity Framework对比
LINQ to SQL和Entity Framework都是一种包含LINQ功能的对象关系映射技术。他们之间的本质区别在于EF对数据库架构和我们查询的类型实行了更好的解耦。使用EF,我们查询的对象不再是完全对应数据库架构的C#类,而是更高层的抽象:Entity Data Model。这为我们提供了额外的灵活性,但是在性能和简单性上面也会有所损失。 LINQ to SQL由C#团队开发并在.N...
分类:数据库   时间:2014-06-24 17:57:56    阅读次数:278
使用Linq中的Distinct方法对序列进行去重操作
使用Linq提供的扩展方法Distinct可以去除序列中的重复元素。 该方法具有以下两种重载形式: (1)public static IEnumerable Distinct(this IEnumerable source) (重载1) 通过使用默认的相等比较器对值进行比较并返回序列中的非重复元素。 (2)publicstatic IQueryable Distinct(this IQue...
分类:其他好文   时间:2014-06-22 11:07:47    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!