2009-06-30 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / corlib / System.Security / PermissionSet.cs
index 132150c07a038b68034b066a3d36e40270aa3e09..1ac01aefc570a1b0c17db5df6ffc48336567945d 100644 (file)
@@ -49,6 +49,7 @@ namespace System.Security {
 #if NET_2_0
        [ComVisible (true)]
 #endif
+       [MonoTODO ("CAS support is experimental (and unsupported).")]
        public class PermissionSet: ISecurityEncodable, ICollection, IEnumerable, IStackWalk, IDeserializationCallback {
 
                private const string tagName = "PermissionSet";
@@ -57,7 +58,6 @@ namespace System.Security {
 
                private PermissionState state;
                private ArrayList list;
-               private int _hashcode;
                private PolicyLevel _policyLevel;
                private bool _declsec;
                private bool _readOnly;
@@ -153,7 +153,7 @@ namespace System.Security {
                        return perm;
                }
 
-               [MonoTODO ("Imperative mode isn't supported")]
+               [MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
                [SecurityPermission (SecurityAction.Demand, Assertion = true)]
 #if NET_2_0
                public void Assert ()
@@ -227,7 +227,7 @@ namespace System.Security {
                        bool call_cas_only = this.IsUnrestricted ();
                        // non CAS permissions (e.g. PrincipalPermission) do not requires a stack walk
                        for (int i = 0; i < n; i++) {
-                               CodeAccessPermission p = (CodeAccessPermission) list [i];
+                               IPermission p = (IPermission) list [i];
                                Type t = p.GetType ();
                                if (t.IsSubclassOf (typeof (CodeAccessPermission))) {
                                        _ignored [i] = false;
@@ -288,7 +288,7 @@ namespace System.Security {
                        }
                }
 
-               [MonoTODO ("Imperative mode isn't supported")]
+               [MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
 #if NET_2_0
                public void Deny ()
 #else
@@ -398,7 +398,7 @@ namespace System.Security {
                        return true;
                }
 
-               [MonoTODO ("Imperative mode isn't supported")]
+               [MonoTODO ("CAS support is experimental (and unsupported). Imperative mode is not implemented.")]
 #if NET_2_0
                public void PermitOnly ()
 #else
@@ -427,7 +427,7 @@ namespace System.Security {
                        return false;
                }
 
-               [MonoTODO ("little documentation in Fx 2.0 beta 1")]
+               // FIXME little documentation in Fx 2.0 beta 1
                public static byte[] ConvertPermissionSet (string inFormat, byte[] inData, string outFormat) 
                {
                        if (inFormat == null)
@@ -772,7 +772,7 @@ namespace System.Security {
                        return (list.Count == 0) ? (int) state : base.GetHashCode ();
                }
 
-               [MonoTODO ("(2.0) what's it doing here? There's probably a reason this was added here.")]
+               // FIXME what's it doing here? There's probably a reason this was added here.
                static public void RevertAssert ()
                {
                        CodeAccessPermission.RevertAssert ();