* CodeParameterDeclarationExpressionCollection.cs: Use CollectionBase
[mono.git] / mcs / class / System / System.CodeDom / CodeStatementCollection.cs
index 11a41280641c9003b9ed6d3f4ab97eaee6abac24..3183b588ecf658d131194e871e44c85bf31668b7 100644 (file)
@@ -127,10 +127,7 @@ namespace System.CodeDom
 
                public void Remove (CodeStatement value)
                {
-                       int index = IndexOf (value);
-                       if (index < 0)
-                               throw new ArgumentException ("The specified object is not found in the collection");
-                       RemoveAt (index);
+                       List.Remove (value);
                }
        }
 }