开发者

Compile assemblies with restrictive access

开发者 https://www.devze.com 2023-01-20 05:52 出处:网络
Is it possible to compile an a开发者_如何学运维ssembly to either: only include certain code parts

Is it possible to compile an a开发者_如何学运维ssembly to either: only include certain code parts OR Allow access to certain code based on a credential?

I have an assembly that is redistributed. Certain applications will only use/have access to certain functionality and other will need more.


You can make internal types accessible for certain assemblies using the System.Runtime.CompilerServices.InternalsVisibleToAttribute. But this attribute's intent is to be used in unit test scenarios.

0

精彩评论

暂无评论...
验证码 换一张
取 消