Hi Guys,
Hoping you can help.
I have an application that uses a specific equation depending on the configuration. The application may have two or more of one particular configuration to calculate. However, on the even number of instances I want it to reverse an array so it gives me a different result every second pass.
The first time the code sees the configuration it does this:
fillDielectricPosMicrostrip(layersArray, ref diel_pos);
And, the second time it encounters this configuration it reverses the array:
fillDielectricPosMicrostrip(layersArray, ref diel_pos);
Array.Reverse(diel_pos);
The third time it will fill the array, the fourth time reverse it etc.
How should I do this?
Hoping you can help.
I have an application that uses a specific equation depending on the configuration. The application may have two or more of one particular configuration to calculate. However, on the even number of instances I want it to reverse an array so it gives me a different result every second pass.
The first time the code sees the configuration it does this:
fillDielectricPosMicrostrip(layersArray, ref diel_pos);
And, the second time it encounters this configuration it reverses the array:
fillDielectricPosMicrostrip(layersArray, ref diel_pos);
Array.Reverse(diel_pos);
The third time it will fill the array, the fourth time reverse it etc.
How should I do this?