[Mono-bugs] [Bug 79110][Min] New - System.Type.Name property should append '&' if IsByRef is true

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Aug 19 15:34:38 EDT 2006


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 peter.dettman at iinet.net.au.

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

--- shadow/79110	2006-08-19 15:34:38.000000000 -0400
+++ shadow/79110.tmp.24284	2006-08-19 15:34:38.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 79110
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: peter.dettman at iinet.net.au               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Type.Name property should append '&' if IsByRef is true
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+If an instance of class System.Type represents a ByRef type, the string
+property Name should append '&' to the basic name.
+
+This is done correctly for the System.Type.FullName property already.
+
+
+Sample program to reproduce:
+
+using System;
+using System.Reflection;
+
+namespace TypeNameTest
+{
+    public class MainClass
+    {
+        public static void Main(string[] args)
+        {
+            ParameterInfo pi =
+typeof(MainClass).GetMethod("Reflected").GetParameters()[0];
+            Type pt = pi.ParameterType;
+            Console.WriteLine(pt.FullName);
+            Console.WriteLine(pt.Name);
+        }
+
+        public static void Reflected(ref int a) {}
+    }
+}


More information about the mono-bugs mailing list