internal static bool CheckIfHosted() { if (!HostExecutionContextManager._fIsHostedChecked) { HostExecutionContextManager._fIsHosted = HostExecutionContextManager.HostSecurityManagerPresent(); HostExecutionContextManager._fIsHostedChecked = true; } return(HostExecutionContextManager._fIsHosted); }