InternalsVisibleTo is not working for wpf application

限于喜欢 提交于 2019-12-12 19:10:17

问题


I have the [assembly:InternalsVisibleTo("GuiAssembly")] set in the other assembly but when wpf binding occurs on a class that lives in the other assembly, it throws an exception because of the property in that class being internal.

I know this works with other applications but not sure why it is not working with this particular WPF app.


回答1:


I'm pretty sure that everything that WPF binds to needs to be public.



来源:https://stackoverflow.com/questions/4106721/internalsvisibleto-is-not-working-for-wpf-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!