湖边的白杨树

探索是一种乐趣

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年6月3日

摘要: 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 阅读(8975) 评论(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 阅读(2624) 评论(0) 推荐(0)