湖边的白杨树

探索是一种乐趣

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  218 随笔 :: 1 文章 :: 14 评论 :: 59万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

06 2013 档案

摘要:AutoResetEvent允许线程通过发信号互相通信。通常,此通信涉及线程需要独占访问的资源。线程通过调用AutoResetEvent上的WaitOne来等待信号。如果AutoResetEvent处于非终止状态,则该线程阻塞,并等待当前控制资源的线程通过调用Set发出资源可用的信号。调用Set向A... 阅读全文
posted @ 2013-06-23 21:46 fdyang 阅读(641) 评论(0) 推荐(0) 编辑

摘要:获取当前线程IDThread.CurrentThread.ManagedThreadIdAppDomain.GetCurrentThreadId() // Low level.参考:http://kb.cnblogs.com/page/42529/ 阅读全文
posted @ 2013-06-23 21:37 fdyang 阅读(294) 评论(0) 推荐(0) 编辑

摘要:C#中, Array copy 很方便于保存和复制数据.常用的有两个方法:1. 复制源数组中的前N个数据到目标数组中public static void Copy( Array sourceArray, Array destinationArray, int length)2. 复制源数组中指定起始位置,指定长度的数据到目标数组中的某个指定起始位置中。public static void Copy( Array sourceArray, int sourceIndex, Array destinationArray, int destinationIndex, int length)习题: 生 阅读全文
posted @ 2013-06-03 18:23 fdyang 阅读(8960) 评论(0) 推荐(0) 编辑

摘要:Caught: System.ArgumentException: Destination array was not long enough. Check destIndex and length and the array's lower bounds. at System.Array.Copy(Array sourceArray Int32 sourceIndex Array destinationArray Int32 destinationIndex Int32 length Boolean reliable) at System.Collections.Generic.Qu 阅读全文
posted @ 2013-06-03 17:47 fdyang 阅读(2568) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示