New test.
[mono.git] / mcs / class / System / System.CodeDom / CodeExpressionCollection.cs
index e79609b924c7f95f511f3c52af911769bee03c82..7a1f19f60ab85f5655f87c74c154baa39c1ab146 100644 (file)
@@ -122,10 +122,7 @@ namespace System.CodeDom
 
                public void Remove( CodeExpression 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);
                }
        }
 }