摘要: 30分钟泛型教程一、泛型入门:我们先来看一个最为常见的泛型类型List的定义(真正的定义比这个要复杂的多,我这里删掉了很多东西)[Serializable]public class List : IList, ICollection, IEnumerable{ public T this[int index] { get; set; } public void Add(T item); public void Clear(); public bool Contains(T item); public int IndexOf(T item); public b... 阅读全文
posted @ 2014-01-27 02:51 骑着蜗牛赛跑 阅读(124) 评论(0) 推荐(0)
摘要: 1 先举个例子CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->use myshopdeclare@identintinsertinto orders(customerid,orderdate)values(25,dateadd(day,-1,getdate()))--当前时间减去1天,就是昨天select@ident=@@identityinsertinto details(orderid,productid,unitprice,qu 阅读全文
posted @ 2014-01-27 02:42 骑着蜗牛赛跑 阅读(107) 评论(0) 推荐(0)
摘要: 1.JSON的序列化和反序列化首先要先添加引用:代码如下[csharp] view plaincopyprint?usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingNewtonsoft.Json;namespacePlayJSON{classProgram{staticvoidMain(string[]args){Listlist=newList(){newStuInfo{StuName="张三",StuSex="男",StuAge=11} 阅读全文
posted @ 2014-01-27 02:38 骑着蜗牛赛跑 阅读(500) 评论(0) 推荐(0)
摘要: 在系统部署实施过程中,客户往往会关注系统的可用性方面的指标。对于一个具备高可用性的系统来说,多机部署方案是必不可少的。我们这个知识分享,就从多个不同层面来介绍多机部署方案。--------------------F5 big-ip的网络部署示意图 阅读全文
posted @ 2014-01-27 02:34 骑着蜗牛赛跑 阅读(473) 评论(0) 推荐(0)