摘要: 返回结果如下: First iterationJuan second iterationJackJimJohnJuan 其他情况: 返回结果如下: First iterationJuan second iteration Juan 阅读全文
posted @ 2016-12-22 11:22 五好青年,勇往直前 阅读(184) 评论(0) 推荐(0) 编辑
摘要: where 用法 阅读全文
posted @ 2016-11-22 16:08 五好青年,勇往直前 阅读(200) 评论(0) 推荐(0) 编辑
摘要: wpf,新建异步方法: this.Dispatcher.Invoke(new Action(delegate() { tbMessage.text = "呵呵呵"})); 获取当前调度线程中的主线程; 注意事项,不要把异步的方法体下载主线程中; 阅读全文
posted @ 2016-08-01 11:15 五好青年,勇往直前 阅读(392) 评论(0) 推荐(0) 编辑
摘要: private : 私有成员, 在类的内部才可以访问。 protected : 保护成员,该类内部和继承类中可以访问。 (无修饰符时默认)internal: 在同一命名空间内可以访问。public : 公共成员,完全公开,没有访问限制。 阅读全文
posted @ 2016-07-25 10:19 五好青年,勇往直前 阅读(199) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 提交POST请求 /// </summary> /// <param name="url">提交地址</param> /// <param name="postData">提交的数据</param> /// <param name="sendEncode">发送时 阅读全文
posted @ 2016-07-12 15:41 五好青年,勇往直前 阅读(1415) 评论(0) 推荐(0) 编辑
摘要: XML如下: <?xml version="1.0" encoding="utf-8" ?> <Config> <System> <BaseServer Name="SSO" Title="单点登录" Server="http://10.254.2.22:9010/"></BaseServer> < 阅读全文
posted @ 2016-07-12 15:13 五好青年,勇往直前 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 可以搜索的下拉条 阅读全文
posted @ 2016-06-16 10:54 五好青年,勇往直前 阅读(2068) 评论(0) 推荐(1) 编辑
摘要: 1.传入一个泛型List, 2.获取泛型的类型Type type对象, 3.然后获取type 对象的对应属性PropertyInfo proInfo对象, 4.然后根据属性对象proInfo 获取泛型对象T的对应属性值 代码如下: 阅读全文
posted @ 2016-06-14 17:18 五好青年,勇往直前 阅读(7083) 评论(1) 推荐(0) 编辑
摘要: public class test01{ public string aa{get;set;} public int bb{get;set;} public bool cc{get;set;} public test01 Clone(){ return this.MemberwiseClone() 阅读全文
posted @ 2016-03-10 10:34 五好青年,勇往直前 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 一. 二进制转换成图片12345MemoryStream ms = newMemoryStream(bytes);ms.Position = 0;Image img = Image.FromStream(ms);ms.Close();this.pictureBox1.Image二. C#中byte[... 阅读全文
posted @ 2015-12-23 14:19 五好青年,勇往直前 阅读(158) 评论(0) 推荐(0) 编辑