04 2016 档案

摘要:转自http://www.cnblogs.com/michaelxu/archive/2008/09/20/1293716.html 我们在编程的时候,有时会使用多线程来解决问题,比如你的程序需要在后台处理一大... 阅读全文
posted @ 2016-04-20 20:15 cloudren2020 阅读(138) 评论(0) 推荐(0)
摘要:转自 http://www.cnblogs.com/JimmyZhang/archive/2007/09/23/903360.html文中代码在VS2005下通过,由于VS2003(.Net Framework ... 阅读全文
posted @ 2016-04-20 20:13 cloudren2020 阅读(129) 评论(0) 推荐(0)
摘要:转自http://www.cnblogs.com/cosoft/archive/2011/08/08/2130659.html1.通过构造函数特点:传值是单向的(不可以互相传值),实现简单实现代码如下:在窗体Fo... 阅读全文
posted @ 2016-04-20 20:12 cloudren2020 阅读(106) 评论(0) 推荐(0)
摘要:C# 中的委托(Delegate)类似于 C 或 C++ 中函数的指针。委托(Delegate) 是存有对某个方法的引用的一种引用类型变量。引用可在运行时被改变。委托(Delegate)特别用于实现事件和回调方法... 阅读全文
posted @ 2016-04-17 12:38 cloudren2020 阅读(100) 评论(0) 推荐(0)
摘要:示例:struct TwoJas{ public int x; public int y; }线程方法如下:public void SumFun(object data) ... 阅读全文
posted @ 2016-04-17 12:37 cloudren2020 阅读(115) 评论(0) 推荐(0)
摘要:Asynchronous Server Socket Example.NET Framework 4 其他版本 The following example program creates a server tha... 阅读全文
posted @ 2016-04-17 12:35 cloudren2020 阅读(149) 评论(0) 推荐(0)