If you’re working with dictionaries, I’d strongly suggest installing Microsoft.Activities.Extensions package - there’s a couple of very useful activities for them in there that will make your life easier.
Or you could use InvokeMethod, since .Add is void and thus cannot be used in Assign.
Regards.