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/PermissionSetAttribute.cs')
-rw-r--r--mcs/class/corlib/System.Security.Permissions/PermissionSetAttribute.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.Security.Permissions/PermissionSetAttribute.cs b/mcs/class/corlib/System.Security.Permissions/PermissionSetAttribute.cs
index 9613ea34f7a..74ceebd9477 100644
--- a/mcs/class/corlib/System.Security.Permissions/PermissionSetAttribute.cs
+++ b/mcs/class/corlib/System.Security.Permissions/PermissionSetAttribute.cs
@@ -131,6 +131,7 @@ namespace System.Security.Permissions {
public PermissionSet CreatePermissionSet ()
{
PermissionSet pset = null;
+#if !NET_2_1
if (this.Unrestricted)
pset = new PermissionSet (PermissionState.Unrestricted);
else {
@@ -157,6 +158,7 @@ namespace System.Security.Permissions {
}
#endif
}
+#endif
return pset;
}
}