反射访问非公共成员

//类 AppRuntime 的 IsTrusted 属性为 internal
Assembly.LoadFrom(HttpRuntime.BinDirectory + "Rocky.dll").GetType("Rocky.AppRuntime").GetProperty("IsTrusted").SetValue(null, value, null);

原文地址:https://www.cnblogs.com/Googler/p/1802262.html