This topic has not yet been rated - Rate this topic

Security Considerations for Reflection

Reflection provides the ability to obtain information about types and members, and to access members. In Silverlight, you can use reflection to perform the following tasks:

  • Enumerate types and members, and examine their metadata.

  • Enumerate and examine assemblies and modules.

  • Access public members.

  • Access internal members (Friend members in Visual Basic) in the calling code's assembly. (In reflection, this is referred to as assembly-level access.)

In Silverlight, you cannot use reflection to access private types and members. If the access level of a type or member would prevent you from accessing it in statically compiled code, you cannot access it dynamically by using reflection.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Be explicit about IntenalsVisibleTo
The text should be authoritative about whether the "if the compiler allows it" stretches to InternalsVisibleToAttribute. (Pretty sure it does from reading other posts, about to verify; will be back to whine if its not the case)