I have a requirement to call the internal method of a third-party object (for example, I cannot make it public). I can do it through reflection. Unfortunately, this does not work in the ASP.NET Medium environment due to insufficient rights:
<IPermission class="ReflectionPermission" version="1" Flags="RestrictedMemberAccess"/></PermissionSet>
Is it possible to use internal methods in this case? I heard that LINQ expressions can be used to call private / internal methods. Can expression methods somehow override ReflectionPermission?
source
share