上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
摘要: 本文转自:http://www.cnblogs.com/rr163/p/4047404.htmlC#的协变和逆变由子类向父类方向转变是协变,用out关键字标识,由父类向子类方向转变是逆变,用in关键字协变和逆变的应用一、 数组的协变Animal[] animalArray = new Dog[]{}... 阅读全文
posted @ 2014-10-24 16:15 ICupid 阅读(209) 评论(0) 推荐(0) 编辑
摘要: public int Compare(Product first, Product second) { return PartialComparer.RefernceCompare(first, second) ?? PartialComparer.Comare... 阅读全文
posted @ 2014-10-24 11:57 ICupid 阅读(323) 评论(0) 推荐(0) 编辑
摘要: public static int? TrayParse(string text) { int ret; if (int.TryParse(text,out ret)) { return ret; ... 阅读全文
posted @ 2014-10-22 19:15 ICupid 阅读(219) 评论(0) 推荐(0) 编辑
摘要: public class Person { public DateTime birth; public DateTime? death; string name; public TimeSpan Age { get { ... 阅读全文
posted @ 2014-10-22 16:09 ICupid 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 本文摘自:http://www.cnblogs.com/kissdodog/p/3154371.html(感谢作者的分享,总结的很好)基于列的逻辑表达式,其实就是CASE表达式.可以用在SELECT,UPDATE,DELETE,SET以及IN,WHERE,ORDER BY和HAVING子句之后。由于... 阅读全文
posted @ 2014-10-21 15:29 ICupid 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 官网参考:http://json.codeplex.com/在程序包管理控制台,键入NuGet命令 install-package Newtonsoft.Json 安装Newtonsoft.JsonPM> install-package Newtonsoft.Json正在安装“Newtonsoft.... 阅读全文
posted @ 2014-10-15 15:09 ICupid 阅读(12566) 评论(0) 推荐(0) 编辑
摘要: (菜鸟,勿喷,有错求指正)Asp.net 新建的类库中安装MVC4 。下面是步骤,1+2:打开程序包管理控制台,3:运行Install-Package Microsoft.AspNet.Mvc -Version 4.0.20710命令,4:显示结果,5:查看是否存在System.Web.MVC引用补... 阅读全文
posted @ 2014-10-15 14:22 ICupid 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 文章出处:http://www.cnblogs.com/7788/archive/2009/05/13/1455920.html先举几个简单的应用案例:1、格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元)string.Format("{0:C}",0.2) 结果为:¥0.... 阅读全文
posted @ 2014-10-14 23:06 ICupid 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-10-13 11:50 ICupid 阅读(161) 评论(0) 推荐(0) 编辑
摘要: //本域内设置cookie 跨域设置cookie //读取Cookie //读取cookie function getCookie(key) { var arr = document.cookie.split(";"); ... 阅读全文
posted @ 2014-10-10 22:42 ICupid 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页