How to use a .NET method which modifies in place in Python?
问题 I am trying to use a .NET dll in Python. In a .NET language the method requires passing it 2 arrays by reference which it then modifies: public void GetItems( out int[] itemIDs, out string[] itemNames ) How can I use this method in Python using the Python for .NET module? Edit: Forgot to mention this is in CPython not IronPython. Additional info. When I do the following: itemIDs = [] itemNames = [] GetItems(itemIDs, itemNames) I get an output like: (None, <System.Int32[] at 0x43466c0>,