Exclude security code from the mobile targets.
[mono.git] / mcs / class / referencesource / System / misc / SecurityUtils.cs
index 76e02fafbaf129d1df896e79c433af109780ea35..5bf155fd382b7a33483d0c9b7d61e3c5ebb56da9 100644 (file)
@@ -70,9 +70,11 @@ namespace System.Windows.Forms
 
         [SecuritySafeCritical]
         private static void DemandGrantSet(Assembly assembly) {
+#if !MOBILE
             PermissionSet targetGrantSet = assembly.PermissionSet;
             targetGrantSet.AddPermission(RestrictedMemberAccessPermission);
             targetGrantSet.Demand();
+#endif
         }
 
         private static bool HasReflectionPermission(Type type) {