Using arrays in $system.external .NET gateway
I'm converting a .NET gateway interface (call .NET code from IRIS) from the old "Caché style" that use imported proxy class to the new $system.external .NET gateway as documented in:
https://docs.intersystems.com/iris20221/csp/docbook/DocBook.UI.Page.cls?...
For simple case it works and I'm fine, unfortunately I don't understand how to implement/access .NET arrays from IRIS and unfortunately the documentation has no info whatsoever on how to work with arrays.
What I'm looking for is how to implement the same code as described in the old .NET gateway example (TestArrays() method (part 4) — insert array of Address objects) for arrays:
https://docs.intersystems.com/ens201815/csp/docbook/DocBook.UI.Page.cls?...
In particular, how this "old" code from the old documentation should be implemented using the new $system.external gateway:
Set addressArray=##class(%ListOfObjects).%New()
Do addressArray.Insert(home)
Do addressArray.Insert(home2)
Do test.setAddressArray(addressArray)
How .NET array can be populated from IRIS using the new $system.external .NET gateway?
How .NET array can be accessed from IRIS using the new $system.external .NET gateway?
It would be nice and helpful to have the same %Net.Remote.DotNet.Test code implemented using the new gateway, as it is now the documentation is scarce....at best.
Has anyone ever used the new "InterSystems External Servers" .NET gateway?
Thank you,
Enrico