The tool you are associated with basically compiles the entire application into native code. It doesn’t actually “close” the reflection or anything else, it just turns the application into something completely different, it is no longer bytecode, and not technically a .NET assembly.
Callers with full confidence can always use reflection on the .NET assembly and everything inside it. In addition to (a) obfuscation, which anyone with sufficient patience and determination can de-confuse, or (b) compilation into their own code, which will prevent any reflection (and many other useful functions), you cannot prevent this from happening, and you, of course , you can not limit it to specific assemblies.
ReflectionPermissionAttribute, , , ; , API- Reflection. .
? NSA, /, , . , Reflector / Reflection, API.
, , , , , , , .