码迷,mamicode.com
首页 >  
搜索关键字:generic    ( 7184个结果
silverlight调用MVC WebApi方法
1、创建ASP.NET MVC4 Web应用程序,选择WebAPI模板2、添加silverlight项目3、新建一个数据模型类,代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Web;...
分类:Windows程序   时间:2014-07-14 15:30:51    阅读次数:370
<C#>序列化
序列化就是为了简化复杂的数据结构的存储提出来的概念。序列化也就是把类的对象作为一个整体存入文件,反序列化则是相反过程#using System;#using System.IO;#using System.Collections.Generic;#using System.Runtime.Seria...
分类:其他好文   时间:2014-07-14 15:21:59    阅读次数:173
System.Environment类 获取系统属性
System.Environment类允许我们通过不同的静态成员获得大量的有关运行.net应用程序的操作系统的细节。usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Collections; namespace命令行参数 { classProgram { staticintMain(stri..
分类:其他好文   时间:2014-07-14 12:37:28    阅读次数:192
LinQ转换运算符ToLookup
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ToLookupDemo{ class Program { //自定义类 p...
分类:其他好文   时间:2014-07-14 00:33:57    阅读次数:209
Asp.Net Cache辅助类
辅助类代码using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Caching;namespace BusinessRules.Common{ /// ...
分类:Web程序   时间:2014-07-14 00:23:19    阅读次数:250
LinQ 定义扩展方法3.1
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Diagnostics;namespace Extension...
分类:其他好文   时间:2014-07-14 00:17:34    阅读次数:206
LinQ 定义带有返回类型的扩展方法3.2
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Diagno...
分类:其他好文   时间:2014-07-13 23:53:33    阅读次数:314
LinQ Lambda表达式用作泛型活动
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;using System.IO;namespace LambdaExpressionA...
分类:其他好文   时间:2014-07-13 21:29:37    阅读次数:227
.NET注释
.NET中有三种注释:1.单行注释//2.多行注释/*开始*/结束3.文档注释在类或方法前面敲/////////文档注释///usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; namespace注释 { classProgram { ///<summary> ///这个方法是程序的入口这..
分类:Web程序   时间:2014-07-13 14:24:41    阅读次数:183
LinQ 泛型方法Array>ForEach在数组中进行迭代并调用自定义的委托
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;using System.IO;namespace LambdaExpressionA...
分类:其他好文   时间:2014-07-13 12:53:19    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!