Change Dictionary type from <of String, String> to <of String, Object>

I have an activity that requires type Dictionary<of String, Object> as input
and already prepared Dictionary<of String, String>.
How can I convert the type of Values in that dictionary?


Can you try the following expression?

dictStrObj = dictStrStr.ToDictionary(Function(x) x.key, Function(x) CType(x.Value,object))


1 Like

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