private List <cjhm> IsSuccess() { List <cjhm> result = new List <cjhm>(); for (int i = 1; i < 9; i++) { for (int j = 1; j < 11; j++) { if (j > i) { for (int k = 1; k < 11; k++) { if (k > i && k > j) { cjhm li = new cjhm(); li.number1 = i; li.number2 = j; li.number3 = k; li.id = i + "," + j + "," + k; result.Add(li); } } } } } return(result); }
private List<cjhm> IsSuccess() { List<cjhm> result = new List<cjhm>(); for (int i = 1; i < 9; i++) { for (int j = 1; j < 11; j++) { if (j > i) { for (int k = 1; k < 11; k++) { if (k > i && k > j) { cjhm li = new cjhm(); li.number1 = i; li.number2 = j; li.number3 = k; li.id = i + "," + j + "," + k; result.Add(li); } } } } } return result; }