c# linq ToDictionary code example
Example: function toDictionary
var propertyDictionary = object.ToDictionary(x => x.Property1, x => x.Property2);
var propertyDictionary = object.ToDictionary(x => x.Property1, x => x.Property2);