[DllImport(".\\xx\\xx.dll")] public static extern int CallMethod([In] int iType, [Out] byte[] pOutInfo); 可以使用byte[] 类型来传入。