-
Notifications
You must be signed in to change notification settings - Fork 325
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
当调用未被代理的方法且类的访问级别不是 public 时出错 #274
Comments
devenliu
changed the title
当 interface 的实现类访问级别不是 public 时出错
当调用未被代理的方法且类的访问级别不是 public 时出错
Oct 22, 2021
当访问被代理的方法时,正确运行; |
目前我的方案:
|
从外部程序集调用internal 函数是会报System.MethodAccessException异常的。。打了拦截器不会报异常的原因是这个地方会生成一个public的代理函数... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码
重现
用例1:
ICustomService
的实例ICustomService.Todo1()
用例2(导致了错误):
ICustomService
的实例ICustomService.Todo2()
System.MethodAccessException
问题
The text was updated successfully, but these errors were encountered: