C#里的代码:
(MyCamera.MV_CC_DEVICE_INFO)Marshal.PtrToStructure(m_pDeviceList.pDeviceInfo[i], typeof(MyCamera.MV_CC_DEVICE_INFO));
python:
System.Runtime.InteropServices.Marshal.PtrToStructure(self.stDeviceList.pDeviceInfo[i],MyCamera.MV_CC_DEVICE_INFO)
区别:
typeof在python里面直接可以忽略了