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