[Mono-bugs] [Bug 81048][Wis] Changed - [System.Collections.Generic.List<T>] IList.Add(object item) throws InvalidCastException when item is not of the correct type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Mar 6 03:08:48 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dmitchell at logos.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81048

--- shadow/81048	2007-03-06 03:02:47.000000000 -0500
+++ shadow/81048.tmp.12581	2007-03-06 03:08:48.000000000 -0500
@@ -41,6 +41,10 @@
 
 ------- Additional Comments From dmitchell at logos.com  2007-03-06 02:38 -------
 A similar situation exists with IList.Insert.
 
 ------- Additional Comments From dmitchell at logos.com  2007-03-06 03:02 -------
 Ditto for IList.Remove(object item)
+
+------- Additional Comments From dmitchell at logos.com  2007-03-06 03:08 -------
+except IList.Remove shouldn't actually throw an exception--Remove is supposed to fail 
+silently if the item is not in the list (and it can't be in the list if it's the wrong type).


More information about the mono-bugs mailing list