2010-06-29 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / class / System / System.CodeDom / CodeTypeReferenceCollection.cs
index 5551a5b0cb4d1c1b52a98f694b64990a1aac51bd..0212e4e1f6845b2f5a877b8f7563f86546786dac 100644 (file)
@@ -131,10 +131,7 @@ namespace System.CodeDom
 
                public void Remove( CodeTypeReference 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);
                }
        }
 }