[Mono-bugs] [Bug 44792][Nor] New - Type.GetElementType() fails for byref arrays
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sat, 14 Jun 2003 06:55:58 -0400 (EDT)
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 lluis@ideary.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44792
--- shadow/44792 Sat Jun 14 06:55:58 2003
+++ shadow/44792.tmp.18762 Sat Jun 14 06:55:58 2003
@@ -0,0 +1,57 @@
+Bug#: 44792
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: lluis@ideary.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Type.GetElementType() fails for byref arrays
+
+Description of Problem:
+
+Type.GetElementType() when called for a byref array type returns the type
+of the element of the array, and should return the array type (should
+return the referenced type).
+
+Steps to reproduce the problem:
+1. Run this test app:
+
+ using System;
+
+
+ public class Class1
+
+ {
+
+ static void Main(string[] args)
+
+ {
+
+ Type t = Type.GetType("Class1[]&");
+
+ Console.WriteLine (t.GetElementType());
+
+ }
+
+ }
+
+Actual Results:
+
+Class1
+
+Expected Results:
+
+Class1[]
+
+How often does this happen?
+
+Always