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”}
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
It’s working bro. Thank You
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.