return xmlResolver;
}
-#if !SILVERLIGHT && !MOBILE
+#if !SILVERLIGHT
//This is used by get XmlResolver in Xsd.
//Check if the config set to prohibit default resovler
//notice we must keep GetXmlResolver() to avoid dead lock when init System.Config.ConfigurationManager
}
}
-#if !SILVERLIGHT && !MOBILE
+#if !SILVERLIGHT
private static bool? s_enableLegacyXmlSettings = null;
static internal bool EnableLegacyXmlSettings()
}
bool enableSettings = false; // default value
+#if !MOBILE
if (!ReadSettingsFromRegistry(Registry.LocalMachine, ref enableSettings))
{
// still ok if this call return false too as we'll use the default value which is false
ReadSettingsFromRegistry(Registry.CurrentUser, ref enableSettings);
}
+#endif
s_enableLegacyXmlSettings = enableSettings;
return s_enableLegacyXmlSettings.Value;
}
+#if !MOBILE
[RegistryPermission(SecurityAction.Assert, Unrestricted = true)]
[SecuritySafeCritical]
private static bool ReadSettingsFromRegistry(RegistryKey hive, ref bool value)
return false;
}
+#endif // MOBILE
#endif // SILVERLIGHT