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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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) {} + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
