[Mono-bugs] [Bug 80567][Nor] Changed - Arrays don't have the Set and Get methods that are available (from IL) in Microsoft's .NET

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jan 21 12:09:26 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 michaelgwelch at gmail.com.

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

--- shadow/80567	2007-01-21 02:27:25.000000000 -0500
+++ shadow/80567.tmp.26510	2007-01-21 12:09:26.000000000 -0500
@@ -49,6 +49,18 @@
 How often does this happen? 
 Everytime. Seems like a problem with generating classes to represent arrays.
 
 Additional Information:
 The methods generated by mono contain get_Item and set_Item which don't
 seem to be part of .NET.
+
+------- Additional Comments From michaelgwelch at gmail.com  2007-01-21 12:09 -------
+In my previous comments I stated that get_Item and set_Item were
+methods of an array. I'm not sure where I got that information. Today
+when I reran the program I listed above get_Item and set_Item were not
+in the list. So there doesn't appear to be any method that returns an
+element with the correct type. GetValue returns an object.
+
+If you run the program above with BindingFlags set to include
+NonPublic methods then you'll see the methods of IList included. But
+on .NET those methods throw an exception if you call them on a
+multi-dimensional array.


More information about the mono-bugs mailing list