码迷,mamicode.com
首页 >  
搜索关键字:linq distinct    ( 10194个结果
【C#】利用反射构建实体
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Reflection;namespace RftToModel { ...
分类:其他好文   时间:2014-06-24 10:11:11    阅读次数:151
详解Linq to SQL
第一部分,什么是Linq to sql Linq to sql(或者叫DLINQ)是LINQ(.NET语言集成查询)的一部分,全称基于关系数据的.NET语言集成查询,用于以对象形式管理关系数据,并提供了丰富的查询功能,它和Linq to xml、Linq to objects、Linq to dat...
分类:数据库   时间:2014-06-24 09:21:25    阅读次数:388
C# 实现字符串去重
方法一 注:需要.net 3.5框架的支持string s = "101,102,103,104,105,101,102,103,104,105,106,107,101,108";s = string.Join(",", s.Split(',').Distinct().ToArray());方法二c...
分类:其他好文   时间:2014-06-23 06:01:57    阅读次数:256
客户端调用 CMD 命令并回显结果。
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi...
分类:其他好文   时间:2014-06-23 00:51:01    阅读次数:334
Remove Duplicates from Sorted List II [详细分析]
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1-...
分类:其他好文   时间:2014-06-22 22:57:49    阅读次数:347
5 在C#中如何调用基类构造器
//基类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MVATwentyQuestions { class Test { public string _nam...
分类:其他好文   时间:2014-06-22 20:23:05    阅读次数:186
Leetcode-subsets
题目: Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. ...
分类:其他好文   时间:2014-06-22 17:51:54    阅读次数:196
leetcode -day31 Subsets I II
1、 ?? Subsets Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subset...
分类:其他好文   时间:2014-06-22 17:08:53    阅读次数:179
使用LinqToExcel读取Excel
我们读取和写入Excel 经常使用NPOI工具,如果我们的需求只是需要读取Excel,可以考虑使用LinqToExcel这个组件。这个组件用起来简单,实用,操作方便,而且结合了Linq的查询特性,excel版本不仅支持2003,而且连wps表格都支持(后缀名为.et),csv文件更不在话下了。项目地...
分类:其他好文   时间:2014-06-22 13:13:16    阅读次数:307
LINQ to Object
LinQ to Object是指对任意IEnumerable或Ienumerable集合使用linq查询.它可代替查询任何可枚举的集合.如List,Array或Dictionary.  LINQ的优点   和foreache相比有三个优点 它们更简明、更易读,尤其在筛选多个条件时。它们使用最少的应用程序代码提供强大的筛选、排序和分组功能。无需修改或只需做很小的修改即可...
分类:其他好文   时间:2014-06-22 08:56:16    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!