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(或者叫DLINQ)是LINQ(.NET语言集成查询)的一部分,全称基于关系数据的.NET语言集成查询,用于以对象形式管理关系数据,并提供了丰富的查询功能,它和Linq to xml、Linq to objects、Linq to dat...
分类:
数据库 时间:
2014-06-24 09:21:25
阅读次数:
388
方法一 注:需要.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
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
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
//基类
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
题目:
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
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
我们读取和写入Excel 经常使用NPOI工具,如果我们的需求只是需要读取Excel,可以考虑使用LinqToExcel这个组件。这个组件用起来简单,实用,操作方便,而且结合了Linq的查询特性,excel版本不仅支持2003,而且连wps表格都支持(后缀名为.et),csv文件更不在话下了。项目地...
分类:
其他好文 时间:
2014-06-22 13:13:16
阅读次数:
307
LinQ to Object是指对任意IEnumerable或Ienumerable集合使用linq查询.它可代替查询任何可枚举的集合.如List,Array或Dictionary.
LINQ的优点
和foreache相比有三个优点
它们更简明、更易读,尤其在筛选多个条件时。它们使用最少的应用程序代码提供强大的筛选、排序和分组功能。无需修改或只需做很小的修改即可...
分类:
其他好文 时间:
2014-06-22 08:56:16
阅读次数:
170