1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace Common 7 { 8 //Author:GaoBin...
分类:
其他好文 时间:
2014-06-27 20:20:08
阅读次数:
362
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Runtime.InteropServices; 5 using System.Text; 6 using S...
分类:
其他好文 时间:
2014-06-27 19:55:57
阅读次数:
367
C#数组的排序(正序逆序) 这种排序 超级简单的 !using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication4{ class P...
分类:
其他好文 时间:
2014-06-26 16:13:39
阅读次数:
195
using System; using System.Linq; using System.Reflection; using System.Reflection.Emit; public sealed class DynamicProxy { pri...
分类:
其他好文 时间:
2014-06-26 13:08:59
阅读次数:
185
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
版本为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
看了一些关于这方面的文档,自我总结: 特性(Attribute)就是对一个方法或类做的一个额外的属性说明,也就是附加说明下面是我自己抄的一个实例程序:using System;using System.Collections.Generic;using System.Linq;using Syst....
分类:
Web程序 时间:
2014-06-25 14:18:02
阅读次数:
161
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
两种方法
(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功能的对象关系映射技术。他们之间的本质区别在于EF对数据库架构和我们查询的类型实行了更好的解耦。使用EF,我们查询的对象不再是完全对应数据库架构的C#类,而是更高层的抽象:Entity Data Model。这为我们提供了额外的灵活性,但是在性能和简单性上面也会有所损失。
LINQ to SQL由C#团队开发并在.N...
分类:
数据库 时间:
2014-06-24 17:57:56
阅读次数:
278