c# - Dictionary to anonymous object -


i have dictionary collection, string, int. want convert dictionary anonymous object properties collection keys , anonymous object propertie's values dictionary values. way it?

thank you

are looking this?

var keyvals = dict.select(kv => new { key = kv.key, value = kv.value }); 

but can't imagine use case this. why prefer anonymous type on available dictionary?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -