Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Net 6 方法参数带in修饰符的值类型参数会报null错误, in 引用类型无此问题. #287

Closed
q7164518 opened this issue Aug 8, 2022 · 1 comment · Fixed by #290

Comments

@q7164518
Copy link
Contributor

q7164518 commented Aug 8, 2022

升级了7.0版本的EasyNetQ, 注入IAdvancedBus会报错.
原因是7.0版本的ISerializer的BytesToMessage参数加个in修饰符. 如下图
image
然后就报错了
image
对Emit不是很熟悉, 研究了很久, 无法解决, 官方有解决方案吗

更新. - .Net 6环境才会报这个错误

@q7164518 q7164518 changed the title 带in修饰符的参数方法会报null错误 .Net 6 方法参数带in修饰符的值类型参数会报null错误, in 引用类型无此问题. Aug 10, 2022
@nivalxer
Copy link
Contributor

复现了该问题,目前看起来和 dotnet/runtime#69027 有关,待进一步测试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants