Calling internal methods in a trust tool

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?

+3
source share
1 answer

. / .NET . - , Microsoft, () ​​ ; -)

?

+3

Source: https://habr.com/ru/post/1699073/


All Articles