I have a nested concurrent dictionary as given below:
ConcurrentDictionary<string,ConcurrentDictionary<string,<Class Object>>>
I want to get all objects (values of inner dictionary) into list for further processing without knowing any key.
I tried below two solutions but it does not work for me,
- outer
dictionary.Values.Select(x=> x.Values)
foreach
loop
The problem with first solution is that it won't give only objects and second solution is time consuming.