I\'m experimenting with DynamicObject. One of the things I try to do is setting the values of ref/out arguments, as shown in the code
DynamicObject
ref
out
To make a long story short, DynamicObject doesn't support pass-by-reference, so what you want to do is not directly possible.