Thanks for the fast answer… However, changing to
UDFinedItem::Items.Add(itm);
still gives the same compile error…
As for doing this at all - not quite sure, as im trying to readapt from java, where this would definitely be the correct way, so i dont really know whats the bet way here