Author: spouliot
Date: 2006-05-30 11:58:34 -0400 (Tue, 30 May 2006)
New Revision: 61264
Modified:
trunk/mcs/class/corlib/System.Security.Permissions/ChangeLog
trunk/mcs/class/corlib/System.Security.Permissions/CodeAccessSecurityAttribute.cs
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermission.cs
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermissionAttribute.cs
trunk/mcs/class/corlib/System.Security.Permissions/SecurityAttribute.cs
Log:
2006-05-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* CodeAccessSecurityAttribute.cs: Under 2.0 the ctor is protected.
* IsolatedStoragePermissionAttribute.cs: Under 2.0 the ctor is
protected.
* IsolatedStoragePermission.cs: Under 2.0 the ctor is protected.
* SecurityAttribute.cs: Under 2.0 the ctor is protected.
Modified: trunk/mcs/class/corlib/System.Security.Permissions/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Security.Permissions/ChangeLog
2006-05-30 15:56:12 UTC (rev 61263)
+++ trunk/mcs/class/corlib/System.Security.Permissions/ChangeLog
2006-05-30 15:58:34 UTC (rev 61264)
@@ -1,3 +1,11 @@
+2006-05-30 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * CodeAccessSecurityAttribute.cs: Under 2.0 the ctor is protected.
+ * IsolatedStoragePermissionAttribute.cs: Under 2.0 the ctor is
+ protected.
+ * IsolatedStoragePermission.cs: Under 2.0 the ctor is protected.
+ * SecurityAttribute.cs: Under 2.0 the ctor is protected.
+
2006-04-07 Sebastien Pouliot <[EMAIL PROTECTED]>
* FileIOPermission.cs: Ensure the "bad" path characters match the OS
Modified:
trunk/mcs/class/corlib/System.Security.Permissions/CodeAccessSecurityAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Permissions/CodeAccessSecurityAttribute.cs
2006-05-30 15:56:12 UTC (rev 61263)
+++
trunk/mcs/class/corlib/System.Security.Permissions/CodeAccessSecurityAttribute.cs
2006-05-30 15:58:34 UTC (rev 61264)
@@ -5,7 +5,7 @@
// Created: 2002-01-06
//
// Copyright (C) 2001 Nick Drochak, All Rights Reserved
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -46,7 +46,11 @@
[Serializable]
public abstract class CodeAccessSecurityAttribute : SecurityAttribute {
+#if NET_2_0
+ protected CodeAccessSecurityAttribute (SecurityAction action)
+#else
public CodeAccessSecurityAttribute (SecurityAction action)
+#endif
: base (action)
{
}
Modified:
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermission.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermission.cs
2006-05-30 15:56:12 UTC (rev 61263)
+++
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermission.cs
2006-05-30 15:58:34 UTC (rev 61264)
@@ -6,7 +6,7 @@
// Sebastien Pouliot <[EMAIL PROTECTED]>
//
// (C) 2002 Ximian, Inc. http://www.ximian.com
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -48,7 +48,11 @@
internal bool m_permanentData;
internal IsolatedStorageContainment m_allowed;
+#if NET_2_0
+ protected IsolatedStoragePermission (PermissionState state)
+#else
public IsolatedStoragePermission (PermissionState state)
+#endif
{
if (CheckPermissionState (state, true) ==
PermissionState.Unrestricted) {
UsageAllowed =
IsolatedStorageContainment.UnrestrictedIsolatedStorage;
Modified:
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermissionAttribute.cs
===================================================================
---
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermissionAttribute.cs
2006-05-30 15:56:12 UTC (rev 61263)
+++
trunk/mcs/class/corlib/System.Security.Permissions/IsolatedStoragePermissionAttribute.cs
2006-05-30 15:58:34 UTC (rev 61264)
@@ -5,7 +5,7 @@
// Dan Lewis ([EMAIL PROTECTED])
//
// (C) 2002
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -39,8 +39,12 @@
AttributeTargets.Method, AllowMultiple=true, Inherited=false)]
[Serializable]
public abstract class IsolatedStoragePermissionAttribute :
CodeAccessSecurityAttribute {
-
- public IsolatedStoragePermissionAttribute (SecurityAction
action)
+
+#if NET_2_0
+ protected IsolatedStoragePermissionAttribute (SecurityAction
action)
+#else
+ public IsolatedStoragePermissionAttribute (SecurityAction
action)
+#endif
: base (action)
{
}
Modified:
trunk/mcs/class/corlib/System.Security.Permissions/SecurityAttribute.cs
===================================================================
--- trunk/mcs/class/corlib/System.Security.Permissions/SecurityAttribute.cs
2006-05-30 15:56:12 UTC (rev 61263)
+++ trunk/mcs/class/corlib/System.Security.Permissions/SecurityAttribute.cs
2006-05-30 15:58:34 UTC (rev 61264)
@@ -5,7 +5,7 @@
// Created: 2002-01-06
//
// Copyright (C) 2001 Nick Drochak, All Rights Reserved
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -49,7 +49,11 @@
private SecurityAction m_Action;
private bool m_Unrestricted;
+#if NET_2_0
+ protected SecurityAttribute (SecurityAction action)
+#else
public SecurityAttribute (SecurityAction action)
+#endif
{
Action = action;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches