Barry Olney

Barry Olney

  • NA
  • 5
  • 0

reverse array

Apr 26 2023 12:00 AM

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)