コード例 #1
0
 public static void SetRandomPropertyValues(MyBusinessObject obj, Random random)
 {
     obj.Name = names[random.Next(9)];
     obj.UnitPrice = prizes[random.Next(9)];
     obj.Date = dates[random.Next(9)];
     obj.Discontinued = bools[random.Next(9)];
 }
コード例 #2
0
 public static void SetRandomPropertyValues(MyBusinessObject obj, Random random)
 {
     obj.Name         = names[random.Next(9)];
     obj.UnitPrice    = prizes[random.Next(9)];
     obj.Date         = dates[random.Next(9)];
     obj.Discontinued = bools[random.Next(9)];
 }