In System.IO:
[mono.git] / mcs / class / corlib / System.Security.AccessControl / AuthorizationRuleCollection.cs
index 345304072263b81db1f9042b3e3c1302fed8e4e1..b1e1efc72357aa6ddeb3dffa8c07bf9d5c197766 100644 (file)
@@ -1,10 +1,11 @@
 //
 // System.Security.AccessControl.AuthorizationRuleCollection implementation
 //
-// Author:
+// Authors:
 //     Dick Porter  <dick@ximian.com>
+//     Atsushi Enomoto  <atsushi@ximian.com>
 //
-// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2006-2007 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
 
 using System.Collections;
 
-namespace System.Security.AccessControl {
+namespace System.Security.AccessControl
+{
        public sealed class AuthorizationRuleCollection : ReadOnlyCollectionBase
        {
-               public AuthorizationRule this[int index]
+               private AuthorizationRuleCollection (AuthorizationRule [] rules)
                {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+                       InnerList.AddRange (rules);
+               }
+
+               public AuthorizationRule this [int index] {
+                       get { return (AuthorizationRule) InnerList [index]; }
                }
 
                public void CopyTo (AuthorizationRule[] rules, int index)
                {
-                       throw new NotImplementedException ();
+                       InnerList.CopyTo (rules, index);
                }
        }
 }