private static void parseInputSeparately(InputParser inputParser, out int serverNO, out int pointNO, out double delta, out int spaceDimension, out int histogramResolution, out Array array) { inputParser.parseInputSizes(out spaceDimension, out histogramResolution, out serverNO); Console.WriteLine("Space dim: {0}, resolution: {1}, server no.: {2}", spaceDimension, histogramResolution, serverNO); int[] lengthsArray = new int[spaceDimension]; for (int idx = 0; idx < spaceDimension; idx++) { lengthsArray[idx] = histogramResolution; } array = Array.CreateInstance(typeof(int), lengthsArray); inputParser.parseInputArray(serverNO, histogramResolution, array, out pointNO, out delta); }