[Mono-bugs] [Bug 80567][Nor] New - 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 02:20:19 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:20:19.000000000 -0500
+++ shadow/80567.tmp.12423 2007-01-21 02:20:19.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 80567
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details: Edgy Eft
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: michaelgwelch at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Arrays don't have the Set and Get methods that are available (from IL) in Microsoft's .NET
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem: I'm writing a compiler and I use the Get and Set
+methods in the IL I generate for getting and setting elements of
+multi-dimensional arrays. This works fine on .NET but I just discovered
+that it does not work when I use mono (at least not on linux).
+
+
+Steps to reproduce the problem:
+Compile the following code (using gmcs):
+class Program
+{
+ public static void Main()
+ {
+ Type t = typeof(string[,]);
+ MethodInfo[] methods = t.GetMethods();
+ foreach(MethodInfo method in methods)
+ Console.WriteLine(method.Name);
+
+ }
+}
+
+
+Actual Results:
+The results do not contain the methods Get, GetAt, Set or SetAt.
+
+Expected Results:
+If you run this program using .NET you will see these methods.
+
+
+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.
More information about the mono-bugs
mailing list