2
Answers

reverse array

Barry Olney

Barry Olney

1y
569
1

Hi,

In the code below, an array is filled with variables. However, I would like to reverse the order in which the variables are entered and stored in the array. This code doesn't work. Any suggestions would be greatly appreciated.

diel_pos[0] = 0F; 
fillDielectricPosMicrostrip(layersArray, ref diel_pos);
Array.Reverse(diel_pos);  //April 23             
diel_const[0] = 1;
fillDielectricConst(layersArray, 1, ref diel_const);
Array.Reverse(diel_const);  //April 23

 

Answers (2)