Hi,
there are many possible solutions for this. Here is one:
public static int[] ConvertDoubleArrayToIntArray(double[] adDoubleArray)
{
return adDoubleArray.Select(d => (int)d).ToArray();
}
and use like this:
double[] adDoubleArray = { 1.1d, 2.2d, 3.3d, 4.4d, 5.5d };
int[] aiIntArray = ConvertDoubleArrayToIntArray(adDoubleArray);