2014年9月10日

[转]C#委托Action、Action<T>、Func<T>、Predicate<T>

摘要: CLR环境中给我们内置了几个常用委托Action、 Action、Func、Predicate,一般我们要用到委托的时候,尽量不要自己再定义一 个委托了,就用系统内置的这几个已经能够满足大部分的需求,且让代码符合规范。一、ActionAction封装的方法没有参数也没有返回值,声明原型为:1 pub... 阅读全文

posted @ 2014-09-10 17:59 freeliver54 阅读(440) 评论(0) 推荐(0)

自定义Image HtmlHelper

摘要: public static void Image(this HtmlHelper helper, string src, string alt = null, object htmlAttributes = null) { System.Web.U... 阅读全文

posted @ 2014-09-10 15:39 freeliver54 阅读(293) 评论(1) 推荐(0)

OAuth 开放授权 Open Authorization

摘要: http://oauth.net/http://tools.ietf.org/html/rfc6749http://reg.163.com/help/help_oauth2.html网易通行证OAuth2.0认证文档认证流程OAuth2.0认证分为3个步骤:1)用户授权并获取code2)使用code... 阅读全文

posted @ 2014-09-10 09:18 freeliver54 阅读(761) 评论(0) 推荐(0)

[转]巧克英语

摘要: http://www.chocenglish.com/magazine.jsp?id=23 阅读全文

posted @ 2014-09-10 08:52 freeliver54 阅读(229) 评论(0) 推荐(0)

导航