Click here to Skip to main content
12,502,005 members (51,867 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#3.0 C#
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 9-Nov-12 0:17am
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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

byte[4][] channelArr = new byte[4][];
channelArr[0]= ch11;
channelArr[1]= ch12;
channelArr[2]= ch13;
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100