More profile apis tweaks
authorMarek Safar <marek.safar@gmail.com>
Wed, 29 Apr 2015 19:52:39 +0000 (21:52 +0200)
committerMarek Safar <marek.safar@gmail.com>
Mon, 2 May 2016 22:10:12 +0000 (00:10 +0200)
mcs/class/referencesource/mscorlib/microsoft/win32/safehandles/saferegistryhandle.cs
mcs/class/referencesource/mscorlib/system/activator.cs
mcs/class/referencesource/mscorlib/system/attribute.cs
mcs/class/referencesource/mscorlib/system/iappdomain.cs

index be76290340564835c4324540b7e04c149ac42b38..7e94df2e86952d153fd619868dc7165079839d8b 100644 (file)
@@ -11,7 +11,7 @@
 // Implements Microsoft.Win32.SafeHandles.SafeRegistryHandle
 //
 // ======================================================================================
-#if !FEATURE_PAL || (MONO && !MOBILE)
+#if !FEATURE_PAL || MONO
 namespace Microsoft.Win32.SafeHandles {
     using System;
     using System.Security;
index 9ce777065f90b049bfa60397ba1d5b6af7f3cdda..a0afe0c2ed9d561e5292bffe6d3d6fa22892d2be 100644 (file)
@@ -626,9 +626,9 @@ namespace System {
                                                                    activationAttributes,
                                                                    null);
         }
-#if FEATURE_COMINTEROP || MONO_COM
+#if FEATURE_COMINTEROP || MONO_COM || MOBILE_LEGACY
 
-#if FEATURE_CLICKONCE
+#if FEATURE_CLICKONCE || MOBILE_LEGACY
         [System.Security.SecuritySafeCritical]  // auto-generated
         public static ObjectHandle CreateInstance (ActivationContext activationContext) {
             AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager;
@@ -700,7 +700,7 @@ namespace System {
         }
 #endif // FEATURE_COMINTEROP                                  
 
-#if FEATURE_REMOTING
+#if FEATURE_REMOTING || MOBILE_LEGACY
         //  This method is a helper method and delegates to the remoting 
         //  services to do the actual work. 
         [System.Security.SecurityCritical]  // auto-generated_required
index 4484110fd0be4b79821569ba3c12dea0db80c5bb..389ca01dde1ed68ac7a26f61050c0634c522c125 100644 (file)
@@ -1017,7 +1017,7 @@ namespace System {
         #region Public Members
         public virtual bool IsDefaultAttribute() { return false; }
         #endregion
-
+#if !MOBILE
         void _Attribute.GetTypeInfoCount(out uint pcTInfo)
         {
             throw new NotImplementedException();
@@ -1037,5 +1037,6 @@ namespace System {
         {
             throw new NotImplementedException();
         }
+#endif
     }
 }
index 514e0d3e53c5eb3558cd136a4f5d0f660b852eb3..bd7f00652a9b27f53f7dfd8c0107d030f7f8dae9 100644 (file)
@@ -58,7 +58,7 @@ namespace System {
 
         Type GetType ();
 
-#if FEATURE_REMOTING        
+#if FEATURE_REMOTING || MOBILE_LEGACY
         [System.Security.SecurityCritical]  // auto-generated_required
         Object InitializeLifetimeService ();
 
@@ -66,7 +66,7 @@ namespace System {
         Object GetLifetimeService ();
 #endif // FEATURE_REMOTING        
 
-#if FEATURE_CAS_POLICY
+#if FEATURE_CAS_POLICY || MOBILE_LEGACY
         Evidence Evidence { get; }
 #endif // FEATURE_CAS_POLICY
         event EventHandler DomainUnload;
@@ -248,18 +248,18 @@ namespace System {
         #endif
         Object GetData(string name);
 
-#if FEATURE_CAS_POLICY        
+#if FEATURE_CAS_POLICY || MOBILE_LEGACY
         [System.Security.SecurityCritical]  // auto-generated_required
         void SetAppDomainPolicy(PolicyLevel domainPolicy);
 
-#if FEATURE_IMPERSONATION
+#if FEATURE_IMPERSONATION || MOBILE_LEGACY
         void SetThreadPrincipal(IPrincipal principal);
 #endif // FEATURE_IMPERSONATION
 
         void SetPrincipalPolicy(PrincipalPolicy policy);
 #endif
 
-#if FEATURE_REMOTING
+#if FEATURE_REMOTING || MOBILE_LEGACY
         void DoCallBack(CrossAppDomainDelegate theDelegate);
 #endif