Просмотр исходного кода

2002-07-22 Tim Coleman <[email protected]>
* ReflectionPermission.cs:
* EnvironmentPermission.cs:
Stubbs added because these are referenced
in System.Web.

svn path=/trunk/mcs/; revision=6045

Tim Coleman 23 лет назад
Родитель
Сommit
84be09042c

+ 6 - 0
mcs/class/corlib/System.Security.Permissions/ChangeLog

@@ -1,3 +1,9 @@
+2002-07-22  Tim Coleman <[email protected]>
+	* ReflectionPermission.cs:
+	* EnvironmentPermission.cs:
+		Stubbs added because these are referenced
+		in System.Web.
+
 2002-07-13  Jonathan Pryor  <[email protected]>
 	* ResourcePermissionBase.cs: Stubbed out
 	* ResourcePermissionBaseEntry.cs: Implemented.

+ 103 - 0
mcs/class/corlib/System.Security.Permissions/EnvironmentPermission.cs

@@ -0,0 +1,103 @@
+//
+// System.Security.Permissions.EnvironmentPermission.cs
+//
+// Tim Coleman <[email protected]>
+//
+// Copyright (C) 2002, Tim Coleman
+//
+
+using System;
+using System.Security.Permissions;
+
+namespace System.Security.Permissions
+{
+	[Serializable]
+	public sealed class EnvironmentPermission : CodeAccessPermission, IUnrestrictedPermission
+	{
+		#region Fields
+
+		EnvironmentPermissionAccess flags;
+		PermissionState state;
+		string pathList;
+
+		#endregion // Fields
+
+		#region Constructors
+
+		public EnvironmentPermission (PermissionState state)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public EnvironmentPermission (EnvironmentPermissionAccess flag, string pathList)
+		{
+			throw new NotImplementedException ();
+		}
+
+		#endregion // Constructors
+
+		#region Methods
+
+		[MonoTODO]
+		public void AddPathList (EnvironmentPermissionAccess flag, string pathList)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Copy ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override void FromXml (SecurityElement esd)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public string GetPathList (EnvironmentPermissionAccess flag)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Intersect (IPermission target)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool IsSubsetOf (IPermission target)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool IsUnrestricted ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void SetPathList (EnvironmentPermissionAccess flag, string pathList)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override SecurityElement ToXml ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Union (IPermission other)
+		{
+			throw new NotImplementedException ();
+		}
+
+		#endregion // Methods
+	}
+}

+ 94 - 0
mcs/class/corlib/System.Security.Permissions/ReflectionPermission.cs

@@ -0,0 +1,94 @@
+//
+// System.Security.Permissions.ReflectionPermission.cs
+//
+// Tim Coleman <[email protected]>
+//
+// Copyright (C) 2002, Tim Coleman
+//
+
+using System;
+
+namespace System.Security.Permissions
+{
+	[Serializable]
+	public sealed class ReflectionPermission : CodeAccessPermission, IUnrestrictedPermission
+	{
+		#region Fields
+
+		ReflectionPermissionFlag flags;
+		PermissionState state;
+
+		#endregion // Fields
+
+		#region Constructors
+
+		public ReflectionPermission (PermissionState state)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public ReflectionPermission (ReflectionPermissionFlag flag)
+		{
+			throw new NotImplementedException ();
+		}
+
+		#endregion // Constructors
+
+		#region Properties
+
+		public ReflectionPermissionFlag Flags {
+			[MonoTODO]
+			get { throw new NotImplementedException (); }
+			[MonoTODO]
+			set { throw new NotImplementedException (); }
+		}
+
+		#endregion // Properties
+
+		#region Methods
+
+		[MonoTODO]
+		public override IPermission Copy ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override void FromXml (SecurityElement esd)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Intersect (IPermission target)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool IsSubsetOf (IPermission target)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override bool IsUnrestricted ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override SecurityElement ToXml ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public override IPermission Union (IPermission other)
+		{
+			throw new NotImplementedException ();
+		}
+
+		#endregion // Methods
+	}
+}