原程序:
byte[] templeDt = new byte[10240];
templeDt = (byte[])Microsoft.VisualBasic.CompilerServices.Utils.CopyArray((Array)templeDt, new byte[1300]);
现在在C#中有无等价的写法可以实现Microsoft.VisualBasic.CompilerServices.Utils.CopyArray这个方法呢(能得到相同的数值类型以及结果)?谢谢!
byte[] templeDt = new byte[10240];
templeDt = (byte[])Microsoft.VisualBasic.CompilerServices.Utils.CopyArray((Array)templeDt, new byte[1300]);
现在在C#中有无等价的写法可以实现Microsoft.VisualBasic.CompilerServices.Utils.CopyArray这个方法呢(能得到相同的数值类型以及结果)?谢谢!
var result2 = templeDt.Skip(1300).Take(1000).ToArray();
而且在Silverlight也是这样的。