public static IMLDataPair CreatePair(int inputSize, int idealSize) { IMLDataPair result; if (idealSize > 0) { result = new BasicMLDataPair(new BasicMLData(inputSize), new BasicMLData(idealSize)); } else { result = new BasicMLDataPair(new BasicMLData(inputSize)); } return result; }