1、创建ASP.NET MVC4 Web应用程序,选择WebAPI模板2、添加silverlight项目3、新建一个数据模型类,代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Web;...
序列化就是为了简化复杂的数据结构的存储提出来的概念。序列化也就是把类的对象作为一个整体存入文件,反序列化则是相反过程#using System;#using System.IO;#using System.Collections.Generic;#using System.Runtime.Seria...
分类:
其他好文 时间:
2014-07-14 15:21:59
阅读次数:
173
System.Environment类允许我们通过不同的静态成员获得大量的有关运行.net应用程序的操作系统的细节。usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Collections;
namespace命令行参数
{
classProgram
{
staticintMain(stri..
分类:
其他好文 时间:
2014-07-14 12:37:28
阅读次数:
192
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ToLookupDemo{ class Program { //自定义类 p...
分类:
其他好文 时间:
2014-07-14 00:33:57
阅读次数:
209
辅助类代码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
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
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
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中有三种注释:1.单行注释//2.多行注释/*开始*/结束3.文档注释在类或方法前面敲/////////文档注释///usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
namespace注释
{
classProgram
{
///<summary>
///这个方法是程序的入口这..
分类:
Web程序 时间:
2014-07-13 14:24:41
阅读次数:
183
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