CabinEntity为你定义的实体
CabinEntity existCabin = listCabins.Find(delegate(CabinEntity cabinE)
{
return cabinE.AirCompany == modelPrice.AirCompany
&& cabinE.Cabin == modelPrice.Cabin
&& cabinE.ValidBeginTime <= modelPrice.TravelBeginTime && modelPrice.TravelBeginTime <= cabinE.ValidEndTime
&& cabinE.ValidBeginTime <= modelPrice.TravelEndTime && modelPrice.TravelEndTime <= cabinE.ValidEndTime;
});