public static void Race(IRemoteControlCar car)
 {
     throw new NotImplementedException($"Please implement the (static) TestTrack.Race() method");
 }
示例#2
0
 public static void Race(IRemoteControlCar car) => car.Drive();
示例#3
0
文件: Example.cs 项目: taiyab/v3
 public static decimal Race(IRemoteControlCar car)
 {
     car.Drive();
     return(car.DistanceTravelled);
 }