I have a list of objects, each containing an Id, Code and Description.
I need to convert this list into a Hashtable, using Description as the key and Id as the value.
This is so the Hashtable can then be serialised to JSON.
Is there a way to convert from List<Object> to Hashtable without writing a loop to go through each item in the list?