摘要:
委托就是以方法为参数的类型。不懂,看代码正常情况下是这样的有个方法是public void Love(string country){ messagebox.show("I Love"+" "+country);}你要调用这个方法是不是这样的啊string m="中国!";Love(m);委托就是在这个例子中,Love若是为委托的话,那么m就是一个方法。但是这样的效果肯定不好,I Love 中国 应该为 我爱中国加个判断 if(country="中国") messagebox.show("我爱" 阅读全文
posted @ 2013-11-28 23:39
live in finally
阅读(216)
评论(0)
推荐(0)
摘要:
private void button1_Click(object sender, EventArgs e) { string path = this.textBox1.Text; byte[] imgBytesIn = SaveImage(path); ShowImgByByte(imgBytesIn); //Parameters.Add("@Photo", SqlDbType.Binary).Value = imgBytesIn; } //将图片以二进制流 public byte[] SaveImage(String path) { FileStream fs = ne 阅读全文
posted @ 2013-11-28 18:05
live in finally
阅读(359)
评论(0)
推荐(0)

浙公网安备 33010602011771号