Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
byte[] ch11 = new byte[4] { 0x00, 0x08, 0x00, 0x00 };
byte[] ch12 = new byte[4] { 0x00, 0x10, 0x00, 0x00 };
byte[] ch13 = { 0x00, 0x20, 0x00, 0x00 };
byte[] ch14 = { 0x00, 0x40, 0x00, 0x00 };


byte[][] chennaelArr = new byte[][] { ch11,ch12};

how to pass ch11,ch12 arrays as a element to channelArr.
Posted
Updated 9-Nov-12 0:19am
v2
Comments
CPallini 9-Nov-12 6:36am    
The code you posted already does what you're requesting.

1 solution

It's not exactly solution Instead, Can you try to assign it like shown below :

C#
byte[4][] channelArr = new byte[4][];
channelArr[0]= ch11;
channelArr[1]= ch12;
channelArr[2]= ch13;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900