Convert all dictionary values which has array as datatype to List

I want to Convert all dictionary values which has array as datatype to List using LINQ

For Ex:
dict1 = {“a”}
dict2 = {“abc”,“bca”}

res
list1 = {“a”,“abc”,“bca”}

Hi @RpaNoobMax ,

Could you check with the below Expression :

list1 = yourDictVar.SelectMany(Function(x)x.value.Select(Function(y)y)).ToList

Let us know if it doesn’t work

2 Likes

It’s working bro. Thank You

1 Like

A shortened one:
grafik
grafik

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.