參考答案
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CSD03
{
class Program
{
static void Main(string[] args)
{
using (TaiwanBigLottory lottory = new TaiwanBigLottory())
{
// TODO
for (int i = 0; i < 10; i++)
{
int[] a = lottory.GetLottorySequence().ToArray();
Console.WriteLine("{0:00} {1:00} {2:00} {3:00} {4:00} {5:00} S:{6:00}",a[0],a[1],a[2],a[3],a[4],a[5],a[6]);
}
}
Console.ReadLine();
}
}
}
============LottoryBase中加上==============
//TODO
void IDisposable.Dispose()
{
_lottoryNumberContext.Clear();
_lottoryNumberContext = null;
GC.SuppressFinalize(this);
}
執行結果
留言列表