Przeglądaj źródła

ChangeLog: Updated ChangeLog.
WebPartVerbCollection.cs: Completed and corrected implementation.

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

Sanja Gupta 21 lat temu
rodzic
commit
1191bb45f9

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls.WebParts/ChangeLog

@@ -1,3 +1,7 @@
+2004-09-28  Sanjay Gupta <[email protected]>
+		
+	* WebPartVerbCollection.cs: Completed and corrected implementation.
+
 2004-09-28  Sanjay Gupta <[email protected]>
 		
 	* WebPartVerbCollection.cs: Initial implementation.

+ 6 - 13
mcs/class/System.Web/System.Web.UI.WebControls.WebParts/WebPartVerbCollection.cs

@@ -30,6 +30,7 @@
 #if NET_2_0
 
 using System.Collections;
+using System.Reflection;
 
 namespace System.Web.UI.WebControls.WebParts
 {
@@ -41,18 +42,12 @@ namespace System.Web.UI.WebControls.WebParts
 
 		public WebPartVerbCollection (ICollection verbs)
 		{
-			if (verbs == null)
-				throw new ArgumentNullException ("Parameter verbs cannot be null");
 			InnerList.AddRange (verbs);
 		}
 
 		public WebPartVerbCollection (WebPartVerbCollection existingVerbs, 
 								ICollection verbs)
 		{
-			if (existingVerbs == null)
-				throw new ArgumentNullException ("Parameter existingVerbs cannot be null");
-			if (verbs == null)
-				throw new ArgumentNullException ("Parameter verbs cannot be null");
 			InnerList.AddRange (existingVerbs.InnerList);
 			InnerList.AddRange (verbs);
 		}
@@ -64,21 +59,19 @@ namespace System.Web.UI.WebControls.WebParts
 			return InnerList.Contains (value);
 		}
 
-		[MonoTODO]
 		public void CopyTo (WebPartVerb [] array, int index)
-		{ 
-			throw new NotImplementedException();
+		{
+			InnerList.CopyTo (0, array, index, Count);		
 		}
 
 		public int IndexOf(WebPartVerb value)
 		{
-			return (InnerList.IndexOf(value));
+			return (InnerList.IndexOf (value));
 		}
 
 		public WebPartVerb this [int index ] {
-			get { return (WebPartVerb)InnerList[index]; }
+			get { return (WebPartVerb)InnerList [index]; }
 		}
-
 	}
 }
-#endif
+#endif