I have
IList<IDictionary<string, object>>
How to get without duplicate keys from all dictionaries inside this IListand put them in IList<string>using LINQ?
IList
IList<string>
Use SelectManyandDistinct
SelectMany
Distinct
List<string> uniquekeys = listOfDictionaries .SelectMany(d => d.Keys) .Distinct() .ToList();
Source: https://habr.com/ru/post/1619006/More articles:Binary search tree, iterator inorder method not working - javaHow to use actions or fragments in a multiscreen workflow? - javaError when DeserializeObject that includes DateTime in newtonsoft.js - jsonChart.js the number of Y-axis labels for many decimal places - javascriptY axis limit in JS Bar chart? - bar-chartgrails 2.4 java 8 and tomcat 7.0.55.2 - grailsFlexbox responding grid of square divs supporting aspect ratio - cssHow to check if an instance implements CollectionType? - swiftR how to do this for this operation - vectorizationFind the last observation - R - rAll Articles