Exemplo n.º 1
0
 public TicketAnalyser(ValidRanges valid, int ticketLength)
 {
     validRanges = valid;
     foreach (string key in validRanges.namesAndRanges.Keys)
     {
         // all classes are initialised with all potential positions on the ticket
         potentPos[key] = Enumerable.Range(0, ticketLength).ToList();
     }
 }
Exemplo n.º 2
0
 private void CommonConstructor()
 {
     validRanges = new ValidRanges(dataList[0]);
     myTicket    = dataList[1].Split('\n')[1].Split(',').Select(Int32.Parse).ToList();
 }