private static string GetWPFInstallPath()
        {
            string text = null;
            string environmentVariable = Environment.GetEnvironmentVariable("COMPLUS_Version");

            if (!string.IsNullOrEmpty(environmentVariable))
            {
                text = Environment.GetEnvironmentVariable("COMPLUS_InstallRoot");
                if (string.IsNullOrEmpty(text))
                {
                    text = WpfLibraryLoader.ReadLocalMachineString("Software\\Microsoft\\.NETFramework", "InstallRoot");
                }
                if (!string.IsNullOrEmpty(text))
                {
                    text = Path.Combine(text, environmentVariable);
                }
            }
            if (string.IsNullOrEmpty(text))
            {
                text = WpfLibraryLoader.ReadLocalMachineString("Software\\Microsoft\\Net Framework Setup\\NDP\\v4\\Client\\", "InstallPath");
            }
            return(Path.Combine(text, "WPF"));
        }
 // Token: 0x06007D99 RID: 32153 RVA: 0x002344CD File Offset: 0x002326CD
 internal static void EnsureLoaded(string dllName)
 {
     WpfLibraryLoader.LoadLibrary(Path.Combine(WpfLibraryLoader.WpfInstallPath, dllName));
 }