コード例 #1
0
 public void RequestEntry <T>(IStation <T> Station, IVehicle Vehicle)
 {
     if (Station.IsSpaceOpen())
     {
         Station.Enter(Vehicle);
     }
     else
     {
         Console.WriteLine("This station is full. Find another one.");
     }
 }