当你的才华不能撑起你的野心时,就是你该选择学习的时候了!

摘要: private是完全私有的,只有在类自己里面可以调用,在类的外部和子类都不能调用,子类也不能继承父类的private的属性和方法。 protected虽然可以被外界看到,但外界却不能调用,只有自己及自己的子类可以调用(protected的属性和方法都可以被子类所继承和调用)。 private和pro 阅读全文
posted @ 2019-09-17 18:26 hofmann 阅读(705) 评论(0) 推荐(0)
摘要: getTime public long getTime() 返回自 1970 年 1 月 1 日 00:00:00 GMT 以来此 Date 对象表示的毫秒数。 返回: 自 1970 年 1 月 1 日 00:00:00 GMT 以来此日期表示的毫秒数。 .net DateTime.Ticks pu 阅读全文
posted @ 2019-09-17 15:43 hofmann 阅读(389) 评论(0) 推荐(0)
摘要: /// <summary> /// 组装普通文本请求参数用于post请求 /// </summary> /// <param name="parameters">Key-Value形式请求参数字典</param> /// <returns>URL编码后的请求数据</returns> static p 阅读全文
posted @ 2019-09-17 15:38 hofmann 阅读(581) 评论(0) 推荐(0)
摘要: static int _timeout = 100000; #region CUP Method /// <summary> /// 请求与响应的超时时间 /// </summary> static public int Timeout { get { return _timeout; } set 阅读全文
posted @ 2019-09-17 10:50 hofmann 阅读(1377) 评论(0) 推荐(0)
摘要: using System.Web.Script.Serialization; namespace Com.AppCode.Helper { /// <summary> /// JSON helper /// </summary> public class JsonHelper { /// <summ 阅读全文
posted @ 2019-09-17 10:29 hofmann 阅读(204) 评论(0) 推荐(0)
摘要: using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Schema; JObject jobj = JObject.Parse(respDataJson); var generator = new JsonS 阅读全文
posted @ 2019-09-17 10:08 hofmann 阅读(169) 评论(0) 推荐(0)