コード例 #1
0
		/// <summary>
		///   Gets a value indicating whether the detector detects the <paramref name="vehicle" />.
		/// </summary>
		/// <param name="vehicle">The vehicle that should be checked.</param>
		public override bool DetectsVehicle(Vehicle vehicle)
			=> vehicle.Kind == VehicleKind.OverheightVehicle && vehicle.Lane == _lane && vehicle.IsAtPosition(_position);
コード例 #2
0
		/// <summary>
		///   Gets a value indicating whether the detector detects the <paramref name="vehicle" />.
		/// </summary>
		/// <param name="vehicle">The vehicle that should be checked.</param>
		public override bool DetectsVehicle(Vehicle vehicle)
			=> vehicle.Kind != VehicleKind.PassengerCar && vehicle.Lane == _lane && vehicle.IsAtPosition(_position);