yamid

yamid

  • NA
  • 98
  • 0

how to add some equla-valued elements to the jagged part of a jagged array in c#: Ineed your Help

Oct 25 2008 1:11 PM

I have a big jagged array like  A[,][]  with some specified dimension= ( 76*150)*(140).

How to add some elements   (say x-elements) with zero values, to the begining and to the end of the bold part of that,like:

array seize before= (76*150)*140  --->  array size after adding equali-valued zero elements to begining and to the end of array= (76*150)*(150)

0 0 0 0 0  x x x x x x x x x   0 0 0 0 0

 

I tried to create a bigger array and copy the element of my array ,A, to that. But there is a memory problem.
how can I  use ArrayList and Insert method to do this ?

thanks

 

 


Answers (2)