Json简单操作说明

摘要: 什么是Json?[ 2 {"name":"哈哈··","email":"邮箱01","gender":"男","hobby":["上网","打球"]}, 3 {"name":"呵呵··","email":"邮箱02","gender":"男","ho 阅读全文
posted @ 2013-03-04 19:54 ~紫鱼~ 阅读(318) 评论(0) 推荐(0)

Ioc系列之Ninject高级使用与webapi调用(普通版)

摘要: 我有一组产品 我要获取总价,一般正常情况都是使用设计模式之策略模式来搞定,非常简单。但我们这里要Ioc工具-Ninject,那我们就得写很多接口了。 /// <summary> /// 正常价格 /// </summary> public interface INormal { /// <summary> /// 返回价格总数 /// </summary> /// <param name="products"></param> /// <returns></returns> de 阅读全文
posted @ 2013-03-04 18:59 ~紫鱼~ 阅读(1745) 评论(2) 推荐(0)