摘要: //判断正数 二位正数加小数点二位 //正整数(^\d{1,2}?$) //正小数(^\d{1,2}\.\d{0,2}$) double[] inputList = { 1, 1.0 , 1.1, 1.12 , 12, 12.0 , 12.1, 12.12 }; string pattern = @"(^\d{1,2... 阅读全文
posted @ 2017-01-23 13:52 哈佛 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 关键字:Hello2BizUser 编辑完成后不显示此规则 阅读全文
posted @ 2016-11-30 16:50 哈佛 阅读(561) 评论(0) 推荐(0) 编辑
摘要: new SqlParameter("@states] [nvarchar](50) NULL, 表达式【 \][^#]*\, 】 替换字符 【", SqlDbType.NVarChar, 50), 】后 new SqlParameter("@states", SqlDbType.NVarChar, 阅读全文
posted @ 2016-11-11 15:55 哈佛 阅读(2456) 评论(0) 推荐(0) 编辑
摘要: private static string DataToXml_String(string strReturn) { Hotel r = new Hotel(); r.HotelAttributes = new List(); for (int i = 0; i ... 阅读全文
posted @ 2016-11-08 16:16 哈佛 阅读(488) 评论(0) 推荐(0) 编辑
摘要: string xml = @" 16166 2014-12-28 2014-12-30 199 2 "; PriceRequest list = XmlDeserialize(xml); //反序列化... 阅读全文
posted @ 2016-11-08 16:00 哈佛 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: public enum BedType { [Description("单人床")] SINGLE = 1, [Description("大床")] DOUBLE = 2, [Description("上下铺")] BUNK = 3, [Description("通铺")] DORM_BED = 4 阅读全文
posted @ 2016-11-08 14:14 哈佛 阅读(4202) 评论(0) 推荐(0) 编辑
摘要: 服务号和订阅号 URL配置 创建菜单 查询、删除菜单 接受消息 发送消息(图文、菜单事件响应) 示例Demo下载 后记 最近公司在做微信开发,其实就是接口开发,网上找了很多资料,当然园友也写了很多教程,但都是理论说了一大堆,实用指导或代码很少。如果你自己仔细研究下,其实就那么点东西,C#实现起来也很 阅读全文
posted @ 2016-11-01 16:16 哈佛 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: 一、什么是access_token? access_token是公众号的全局唯一票据,公众号调用各接口时都需使用access_token。正常情况下access_token有效期为7200秒,重复获取将导致上次获取的access_token失效。由于获取access_token的api调用次数非常有 阅读全文
posted @ 2016-11-01 16:08 哈佛 阅读(467) 评论(0) 推荐(0) 编辑
摘要: WebApiConfig.cs Web API 路由 默认方法:GetAllProducts(); "api/{controller}/{id}" http://localhost/api/products 调用自定义方法:GetAllProducts(); "api/{controller}/{a 阅读全文
posted @ 2016-10-28 14:57 哈佛 阅读(2847) 评论(0) 推荐(0) 编辑
摘要: //原数据 List<T_Model> tmpListAll=new List<T_Model>(); //去除集合中重复数据后 List<T_Model> tmpList = tmpListAll.Distinct(new AutoFilterParmsCompare()).ToList(); / 阅读全文
posted @ 2016-04-26 13:10 哈佛 阅读(803) 评论(2) 推荐(0) 编辑