Return List/Array from unmanaged C# DLL
问题 I have Unmanaged C# DLL: [DllExport(ExportName = "GetStudentsList", CallingConvention = CallingConvention.StdCall)] static public List<StudentsStruct>GetStudentsList() { return List<StudentsStruct>; } [DllExport(ExportName = "maxElement", CallingConvention = CallingConvention.StdCall)] static public int maxElement(int a, int b) { return c; } I want to return List<StudentsStruct> from the function. And I want to run above function in a C++ Application: using GetStudentsListFn = List