示例#1
0
文件: Program.cs 项目: bbrueckler/oom
 public static IEnumerable <Sportbike> CreateBike()
 {
     while (true)
     {
         var b = new Sportbike(GetRandom.GetManuf(), GetRandom.GetModel() + " " + (rand.Next(7, 13) * 100 - 10), rand.Next(1, 99999), rand.Next(5, 20) * 1000);
         yield return(b);
     }
 }