I have
IList<IDictionary<string, object>>
How get without duplication keys from all of dictionaries inside this IList
and put them to IList<string>
using LINQ?
Use SelectMany
and Distinct
List<string> uniquekeys = listOfDictionaries
.SelectMany(d => d.Keys)
.Distinct()
.ToList();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With