C# Return Type Issue
问题 I have a C# Class Library DLL that I call from Python. No matter what I do, Python thinks the return type is (int) I am using RGiesecke.DllExport to export the static functions in my DLL, here is an example of a function in my C# DLL: [DllExport("Test", CallingConvention = CallingConvention.Cdecl)] public static float Test() { return (float)1.234; } [DllExport("Test1", CallingConvention = CallingConvention.Cdecl)] public static string Test1() { return "123456789"; } If I return an (int) it