This seems like it is completely straightforward, but my brain isn’t working very well this morning, and I can’t seem to find a good search expression for the answer.
I have an IList<IDictionary<string, string>> and I want to get an IList<string> containing a distinct list of unique key names in my collection of dictionary objects. What’s a quick and elegant way to do this? I’m sure the answer is simple, I just can’t think of it.
Or if you prefer lambda syntax: