public LotteryBase[] GetLotterys()
        {
            int num = 1;

            while (this[num] != null)
            {
                num++;
            }
            LotteryBase[] baseArray = new LotteryBase[num - 1];
            for (int i = 0; i < baseArray.Length; i++)
            {
                baseArray[i] = this[i + 1];
            }
            return(baseArray);
        }
 public LotteryBase[] GetLotterys()
 {
     int num = 1;
     while (this[num] != null)
     {
         num++;
     }
     LotteryBase[] baseArray = new LotteryBase[num - 1];
     for (int i = 0; i < baseArray.Length; i++)
     {
         baseArray[i] = this[i + 1];
     }
     return baseArray;
 }