Return a list to .NET Business Connector
问题 Currently, I am using the following code: Axapta ax = new Axapta(); string tableName; ArrayList ax_cont = null; ax.Logon(null, null, null, null); try { ax_cont = (ArrayList)ax.CallStaticClassMethod("Code_Generator", "tableNames"); for (int i = 1; i <= ax_cont.Count; i++) { tableName = ax_cont[i].ToString(); tablesCB.Items.Add(tableName); } } catch { } But I'm getting a type conversion exception. What do I need to do in C# when a list is returned from ax dynamics as an AxpataObject ? 回答1: It