问题描述
returnnewOTA_HotelAvailRS(){Items=newobject[]{newSuccessType(),newOTA_HotelAvailRSRoomStays(){RoomStay=new[]{newOTA_HotelAvailRSRoomStaysRoomStay(){RoomTypes=new[]{//foreach(RoomTypeTyperoomtypetypeinlist_roomtype.ToArray())//{newRoomTypeType()//=list_roomtype.ToArray(){RoomTypeCode="SQR",NumberOfUnits="True",RoomDescription=newParagraphType(){Name="商务大床房",ItemsElementName=newItemsChoiceType[]{HW.SeamlessCommon.Refs.SeamlessRefs.ItemsChoiceType.Text},Items=newobject[]{newFormattedTextTextType{Language="en-US",Value="商务大床房"}}}//};}[/color]},RatePlans=new[]{newRatePlanType(){RatePlanCode="MEME",RatePlanCategory="16",RatePlanDescription=newParagraphType(){Name="携程标准价(双早)",ItemsElementName=newItemsChoiceType[]{HW.SeamlessCommon.Refs.SeamlessRefs.ItemsChoiceType.Text},Items=newobject[]{newFormattedTextTextType{Language="en-US",Value="携程标准价(双早)"}}}}}}}}}};我要循环newRoomTypeType()和newRatePlanType()怎么写?