111,126
社区成员
发帖
与我相关
我的任务
分享byte[] a = { 1, 2, 3, 4 };
object[] objects = new object[a.Length];
a.CopyTo(objects, 0);
object[] b = new object[5];
byte [] a;
for(int i=0;i<b.Length;i++)
{
a = new byte[]{1,2,3,4};
b[i]=a;
}
byte[] a = { 1, 2, 3, 4 };
object[] b = new object[a.Length];
Array.Copy(a, b, a.Length);
class A
{
static void Main()
{
byte [] a = new byte[]{1,2,3,4};
object[] b = new object[a.Length];
a.CopyTo(b, 0);
foreach (object o in b)
{
System.Console.WriteLine(o);
}
}
}
byte[] bytes=new byte[5]{0,1,2,3,4};
object[] objs = new object[bytes.Length];
for (int i = 0; i < bytes.Length; i++)
objs[i] = bytes[i];