Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Security.Permissions/HostProtectionAttribute.cs')
-rw-r--r--mcs/class/corlib/System.Security.Permissions/HostProtectionAttribute.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.Security.Permissions/HostProtectionAttribute.cs b/mcs/class/corlib/System.Security.Permissions/HostProtectionAttribute.cs
index 93fe70a3545..518b0c04499 100644
--- a/mcs/class/corlib/System.Security.Permissions/HostProtectionAttribute.cs
+++ b/mcs/class/corlib/System.Security.Permissions/HostProtectionAttribute.cs
@@ -173,8 +173,12 @@ namespace System.Security.Permissions {
public override IPermission CreatePermission ()
{
+#if NET_2_1
+ return null;
+#else
// looks like permission is internal
return new HostProtectionPermission (_resources);
+#endif
}
}
}