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
Post a Comment