Don't tag some CAS types as obsolete.
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / DataKeyCollection.cs
index 5df8d185560bacdde8500b97325a857a89b18c01..befcaa0b0a4faf70149c8da1a123f2856b09fb49 100644 (file)
 //
 
 using System.Collections;
+using System.Security.Permissions;
 
 namespace System.Web.UI.WebControls {
 
-       public sealed class DataKeyCollection : ICollection, IEnumerable {
-
-               private ArrayList list;
+       // CAS - no InheritanceDemand here as the class is sealed
+       [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
+       public sealed class DataKeyCollection : ICollection, IEnumerable 
+       {
+               ArrayList list;
 
                public DataKeyCollection (ArrayList keys)
                {
                        list = keys;
                }
 
-
                public int Count {
                        get { return list.Count; }
                }