Given a list of objects and the names of two properties that the objects in the list have, constructs a dictionary object.
The algorithm runs as follows: start with an empty result object. For every object in the source list, pick the value of the Key value property, and assign it to the result object under a property whose name is the value of Key name property.
If multiple objects in the list have the same value for their Key name property, the dictionary will have the value of the Value name property of the last object in the list.