1
我想從父對象列表創建子對象列表。就像如果我有一個會員室的預訂房間列表,那麼我想從它創建房間列表。創建父對象列表中的子對象列表
例如。代碼:
Dim BookingRoomList As List(Of BookingRoom) = New List(Of BookingRoom)
Dim RoomList As List(Of Room) = New List(Of Room)
BookingRoomList = BookingRooms.FillGrid()
For Each BookingRoomInfo As BookingRoom In BookingRoomList
RoomList.Add(BookingRoomInfo.RoomInfo)
Next
是否有任何捷徑方法而不是迭代搜索?
thnx它的工作... – KoolKabin 2011-06-02 11:50:27
thnx for suggestions too – KoolKabin 2011-06-02 12:03:34