Problem description
To follow: Open “Create Pins Programmatically” patch from the Help Browser, and then right-click open NodeWithDynamicInputs.
Now, mark this NodeWithDynamicInputs node as Generic.
You’d see MyInputGroup at its top-right. This is pin group Input and right now it is Dictionary<String, Integer32>
. I can replace its type with Spread
as well and it will still work as a generic spread.
It will work because internally vvvv will make it Spread<T>
. But I cannot mark it as a generic Dictionary. If I use the type Dictionary
I see this error:
Under How can you deal with this?, it suggests you to use Dictionary<string, T>
. Right now we have Dictionary<T2,T3>
.
If I make the type of the key concrete, I still see the same error:
Expected solution
Putting Dictionary as the type in that input pin should have worked, or else, when I make the key’s type concrete, it should have worked and not raise an error.