上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页
摘要: class Test{ delegate void TestDelegate(string s); static void M(string s) { Console.WriteLine(s); } static void Main(string[] args) { // Original delegate syntax required // initialization with a named method. TestDelegate testDelA = new TestDelegate(M)... 阅读全文
posted @ 2013-04-03 15:45 louiskoo 阅读(203) 评论(0) 推荐(0) 编辑
摘要: // Create a handler for a click event.button1.Click += delegate(System.Object o, System.EventArgs e) { System.Windows.Forms.MessageBox.Show("Click!"); };// Create a delegate.delegate void Del(int x);// Instantiate the delegate using an anonymous method.Del d = delegate(int k) { /* ... 阅读全文
posted @ 2013-04-03 15:34 louiskoo 阅读(113) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/zh-cn/library/ms173171 阅读全文
posted @ 2013-04-03 15:30 louiskoo 阅读(227) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/zh-cn/library/8627sbea 阅读全文
posted @ 2013-04-03 15:21 louiskoo 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 在C#中,你给一个方法传输参数时,实际上是使用的这个参数的一个副本,就是将原来的变量复制一份,然后传给一个方法,让其进行操作。所以在方法内部对参数的修改等不会对原来的参数造成影响。但是有些时候,又需要这种影响。ref的作用就是这个。它将变量本身而不是副本传给方法,所以对参数的修改原来变量的值。int a = 0;Console.WriteLine(a.ToString()); //输出是0public void ModifyVaule(ref int a){ a = 1;}Console.WriteLine(a.ToString()); // 输出是1。此外,out修饰符也起到这个作用... 阅读全文
posted @ 2013-04-03 13:31 louiskoo 阅读(179) 评论(0) 推荐(0) 编辑
摘要: http://www.teamviewer.com/zhCN/index.aspx 阅读全文
posted @ 2013-04-03 13:09 louiskoo 阅读(156) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/jianbin1062/article/details/6093337 阅读全文
posted @ 2013-04-02 10:43 louiskoo 阅读(1932) 评论(0) 推荐(0) 编辑
摘要: http://thrift.apache.org/ 阅读全文
posted @ 2013-04-01 21:10 louiskoo 阅读(482) 评论(0) 推荐(0) 编辑
摘要: t = new Thread(new ThreadStart(delegate { Play(sender, e); Console.WriteLine("Play ended."); })); t.Start(); private void Play(object sender, EventArgs e) { Console.WriteLine("InvokeRequired = " + InvokeRequired); ... 阅读全文
posted @ 2013-03-28 15:12 louiskoo 阅读(372) 评论(0) 推荐(0) 编辑
摘要: Thread thread = new Thread(new ThreadStart(delegate { AuroraSocketClient.Connect("192.168.0.12"); })); thread.Start(); Thread t = new Thread(new ThreadStart(delegate { try { seatDay = SeatAlgorithm.GetSeatTotalDayData(); ... 阅读全文
posted @ 2013-03-27 19:12 louiskoo 阅读(1806) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 21 下一页