I have List<Dictionary<string, string>> object with some datas in it.
/* Values in the list will be like
[0] -
aaa - aaaValue1 (Key, Value)
bbb - bbbValue1
ccc - cccValue1
ddd - dddValue1
[1] -
aaa - aaaValue2 (Key, Value)
bbb - bbbValue2
ccc - cccValue2
ddd - dddValue2
and so on */
I want to get the distinct values( List<string> ) in the dictionary where the key is equal to “ccc” and the value of the key “bbb” is equal to “bbbValue1”.
Expected Result:
Return a string list contains the dictionary value where key is equal to “ccc” and the value of the key “bbb” is equal to “bbbValue1” in the List<Dictionary<string, string>>.
I think you want:
or if you want the result as a set:
EDIT:
You’ve changed your question completely, which isn’t a nice thing to do (ask a new one instead), but to answer it in its current state: