public static int P11_RXDS_4(string LotteryNumber, string CheckNumber) { int num = 0; string[] strArray1 = CheckNumber.Split(','); for (int index1 = 0; index1 < strArray1.Length; ++index1) { string[] strArray2 = strArray1[index1].Split(' '); if (strArray2.Length != 4) { return(0); } for (int index2 = 0; index2 < strArray2.Length; ++index2) { if (Check11X5_RXDS.SubstringCount(strArray1[index1], strArray2[index2]) > 1) { return(0); } } if (LotteryNumber.IndexOf(strArray2[0]) != -1 && LotteryNumber.IndexOf(strArray2[1]) != -1 && (LotteryNumber.IndexOf(strArray2[2]) != -1 && LotteryNumber.IndexOf(strArray2[3]) != -1)) { ++num; } } return(num); }
public static int P11_RXDS_8(string LotteryNumber, string CheckNumber) { int num = 0; string[] strArray1 = LotteryNumber.Split(','); string[] strArray2 = CheckNumber.Split(','); for (int index1 = 0; index1 < strArray2.Length; ++index1) { string[] strArray3 = strArray2[index1].Split(' '); if (strArray3.Length != 8) { return(0); } for (int index2 = 0; index2 < strArray3.Length; ++index2) { if (Check11X5_RXDS.SubstringCount(strArray2[index1], strArray3[index2]) > 1) { return(0); } } string str = strArray2[index1]; if (str.IndexOf(strArray1[0]) != -1 && str.IndexOf(strArray1[1]) != -1 && (str.IndexOf(strArray1[2]) != -1 && str.IndexOf(strArray1[3]) != -1) && str.IndexOf(strArray1[4]) != -1) { ++num; } } return(num); }