http://bugzilla.novell.com/show_bug.cgi?id=561970

http://bugzilla.novell.com/show_bug.cgi?id=561970#c5


Rodrigo Kumpera <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
       InfoProvider|                            |[email protected]

--- Comment #5 from Rodrigo Kumpera <[email protected]> 2010-04-19 19:31:09 
UTC ---
Then the collection is not read-only, only it's wrapper is.

Take the following example:

var l = new List<int> ();
l.Add (1); l.Add (2);
var ro = l.AsReadOnly ();
foreach (var r in ro)
  l.Add (r);

It is iterating over a read-only collection but it will raise IOE.
This is the expected behavior.

The stack trace suggests this is the case.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to