disable Win32 registry dependencies in XmlReaderSettings on MOBILE builds.
authorAtsushi Eno <atsushieno@gmail.com>
Tue, 3 Feb 2015 11:14:25 +0000 (19:14 +0800)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:07:55 +0000 (00:07 +0200)
mcs/class/referencesource/System.Xml/System/Xml/Core/XmlReaderSettings.cs

index 88d48d65a1dca0ec5a31f3ab48118348b63f5072..a8a04851d09b578a90f1b01b219d59a416bbdf3b 100644 (file)
@@ -20,7 +20,7 @@ using System.Runtime.Versioning;
 namespace System.Xml {
 
     // XmlReaderSettings class specifies basic features of an XmlReader.
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !MOBILE
     [PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
 #endif
     public sealed class XmlReaderSettings {
@@ -138,7 +138,7 @@ namespace System.Xml {
             return xmlResolver;
         }
 
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !MOBILE
         //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
@@ -501,7 +501,7 @@ namespace System.Xml {
 
         void Initialize(XmlResolver resolver) {
             nameTable = null;
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !MOBILE
             if (!EnableLegacyXmlSettings())
             {
                 xmlResolver = resolver;
@@ -705,7 +705,7 @@ namespace System.Xml {
             }
         }
 
-#if !SILVERLIGHT
+#if !SILVERLIGHT && !MOBILE
         private static bool? s_enableLegacyXmlSettings = null;
 
         static internal bool EnableLegacyXmlSettings()