How to change input/output count on DynamicPins plugin?

I want to create a plugin in which the input/output pin count, can be controlled by another pin, and not via inspektor.
I 've tried some things but i can find out how to work with “ResizeAndDispose”/“Dispose” methods, so i can get the desired result.

  • tsou