Filling an TROArray in Oxygene dot net client app

Delphi server have defined in RODL this

TanArray = class(TROArray) with elements TanOject

Interface file for Oxygene dot ne client app have the same object define as

array of TanOject

In Delphi filling that object is like

var
anArray : TanArray;

anArray.clear;
anArray.add(some);

Cant figure out how to fill that array in oxygene to send to Delphi server.

Please any help with this.

Best regards.

Sample code for an array of String:

  var item1 := "Item 1";
  var item2 := "Item 2";
  var item3 := "Item 3";
  
  // Simple array definition
  var array1 := [ item1, item2, item3 ];
  
  // More complex array definition. Useful when there is no possibility to list all array members in code
  var array2 := new String[3];
  array2[0] := item1;
  array2[1] := item2;
  array2[2] := item3;
  
  // `Dynamic` array definition
  // Can be used when the resulting length of the array is not known
  var list = new System.Collections.Generic.List<String>();
  list.Add(item1);
  list.Add(item2);
  list.Add(item3);
  
  var array3 := list.ToArray();

This is the one Im looking for. Thanks!