protected T InvokeProtectedMethodOnLoadContextAndGetResult <T>(IAssemblyLoadContext loadContext, string methodName, params object[] args) { return((T)loadContext .GetType() .GetMethod(methodName, BindingFlags.Instance | BindingFlags.NonPublic) .Invoke(loadContext, args)); }