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

fix intercept method with out decimal error #255

Merged
merged 4 commits into from
Aug 24, 2021

Conversation

nivalxer
Copy link
Contributor

@nivalxer nivalxer commented Mar 10, 2021

1.修复当方法中包含out decimal时,加上拦截器,在.net5.0下会报内存错误,在.netcoreapp3.1下会out参数未正确返回(即返回值未赋值)的问题。(ProxyGeneratorUtils.cs中修复)
2.调试过程中更新了部分ILGeneratorExtensions.cs中实现。参考的官方dotnet/runtime库中System.Linq.Expressions/src/System/Linq/Expressions/Compiler/ILGen.cs

PS.appveyor编译不通过的问题在另外一个PR修复了。#256

Signed-off-by: nivalxer <nivalxer@gmail.com>
else ilGenerator.Emit(OpCodes.Ldarg, index);
break;
}
ilGenerator.Emit(OpCodes.Ldarg, index);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还是要做必要的check

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

恩,我看上游没有check,所以我就改了。已还原。

@nivalxer nivalxer requested a review from liuhaoyang June 12, 2021 10:53
@liuhaoyang liuhaoyang merged commit f0ad4ce into dotnetcore:master Aug 24, 2021
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 this pull request may close these issues.

2 participants