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;
             });

posted on 2013-12-06 13:14  王洪洪  阅读(865)  评论(0编辑  收藏  举报