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

ILType.GetConstructor 不能正确获取构造函数 #740

Open
mzbswh opened this issue Dec 3, 2022 · 0 comments
Open

ILType.GetConstructor 不能正确获取构造函数 #740

mzbswh opened this issue Dec 3, 2022 · 0 comments

Comments

@mzbswh
Copy link

mzbswh commented Dec 3, 2022

Snipaste_2022-12-03_21-05-00

Snipaste_2022-12-03_21-06-56

如上图所示,HotFix工程里使用 Activator.CreateInstance 里实例化 AA 类型时,上图红框里判断的是 B.CanAssignTo(BB),实际应该是 BB.CanAssignTo(B)

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

No branches or pull requests

1 participant