using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Pr...
分类:
其他好文 时间:
2014-08-12 00:06:03
阅读次数:
152
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.IO; using System.Data; using Aspose.Cells; /// ///.....
分类:
Web程序 时间:
2014-08-11 17:22:32
阅读次数:
776
Linq To Objects是基于C#3.0的扩展方法特性和更复杂的类型参数推断特性。 扩展方法能像目标类型的实例方法一样被调用,而且也能像实例方法一样被链起来,而C#3.0中的类型推断允许基于一个类型参数推断结果来推断另外一个类型参数,如果没有这两个特性,那么linq to objects...
分类:
其他好文 时间:
2014-08-11 17:08:32
阅读次数:
137
Linq to JSON是用来操作JSON对象的.可以用于快速查询,修改和创建JSON对象.当JSON对象内容比较复杂,而我们仅仅需要其中的一小部分数据时,可以考虑使用Linq to JSON来读取和修改部分的数据而非反序列化全部.二.创建JSON数组和对象在进行Linq to JSON之前,首先....
分类:
Web程序 时间:
2014-08-11 17:02:32
阅读次数:
304
select中使用case whenlinq代码:Products.Select(P => new{ID = P.ProductID,Name = P.Name,Color = P.Color,Price = (P.Color == "Red" ? P.StandardCost : (P.Color...
分类:
其他好文 时间:
2014-08-11 11:39:02
阅读次数:
726
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms;using System.Diagnostics;using System.Net...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
//using System.Drawing;
namespace ASP.NET中级
{
///
/// Handler2 的摘要说明
///
public class Handler2...
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespaceConsoleApplication5
{
classProgram
{
staticvoidMain(string[]args)
{
//lambda表达式可用于类型是委托的任意地方
//一个string类型的参数,一个..
分类:
其他好文 时间:
2014-08-10 18:50:41
阅读次数:
219
本文的前提是你已经熟悉Json,如果您还不知道什么是Json是什么,请自行查看维基百科。一、Json.Net是什么? Json.Net是一个读写Json效率比较高的.Net框架.Json.Net 使得在.Net环境下使用Json更加简单。通过Linq To JSON可以快速的读写Json,通过Js....
分类:
Web程序 时间:
2014-08-10 18:20:40
阅读次数:
167
经过昨天到今天的努力以及博问上好心人的帮助,终于解决了XmlReader在未知元素的名称和属性的名称的情况下读取属性的方法。在没有解决前,我的代码如下: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; ...
分类:
其他好文 时间:
2014-08-10 15:20:00
阅读次数:
274