[PLinq] Move NET_4_0 define check under licence text
[mono.git] / mcs / class / System.Web / System.Web.Security / RoleProviderCollection.cs
index 2a8e978f4b462883232c9ce55cf64ca8fb54ef85..68b1f34e453a12dced9dd3bd3330a34898d82d18 100644 (file)
 #if NET_2_0
 using System.Configuration.Provider;
 
-namespace System.Web.Security {
-       public class RoleProviderCollection : ProviderCollection {
-               public override void Add (IProvider provider)
+namespace System.Web.Security
+{
+       public sealed class RoleProviderCollection : ProviderCollection
+       {
+               public override void Add (ProviderBase provider)
                {
-                       if (provider is IRoleProvider)
+                       if (provider is RoleProvider)
                                base.Add (provider);
                        else
                                throw new HttpException ();
                }
                
-               public new IRoleProvider this [string name] {
-                       get { return (IRoleProvider) base [name]; }
+               public new RoleProvider this [string name] {
+                       get { return (RoleProvider) base [name]; }
+               }
+               
+               public void CopyTo (RoleProvider[] array, int index)
+               {
+                       base.CopyTo (array, index);
                }
        }
 }