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?

1 Like

Hi,

Can you try the following expression?

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

Regards,

3 Likes

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