Spring configuration solution:
<object id="HotelFinder" type="MyNameSpace.HotelFinder, MyAssembly">
<property name="CityHotels">
<dictionary key-type="string" value-type="System.Collections.Generic.List<MyNameSpace.Hotel>, mscorlib">
<entry key="London" value-ref="hotelsLondon" />
</dictionary>
</property>
</object>
<object id="hotelsLondon" type="System.Collections.Generic.List<MyNameSpace.Hotel>, mscorlib">
<constructor-arg>
<list element-type="MyNameSpace.Hotel, MyAssembly">
<ref object="hotelLonden1"/>
<ref object="hotelLonden2"/>
<ref object="hotelLonden3"/>
<ref object="hotelLonden4"/>
</list>
</constructor-arg>
</object>
<object id="hotelLonden1" type="MyNameSpace.Hotel, MyAssembly" />
<object id="hotelLonden2" type="MyNameSpace.Hotel, MyAssembly" />
<object id="hotelLonden3" type="MyNameSpace.Hotel, MyAssembly" />
<object id="hotelLonden4" type="MyNameSpace.Hotel, MyAssembly" />
MyAssembly, mscorlib System.Collections.Generic.List.
, !