c# dictionary contains todictionary linq 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);