[Mono-bugs] [Bug 488383] New: Error in ParameterInfo.Member.ReflectedType

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 24 15:15:13 EDT 2009


           Summary: Error in ParameterInfo.Member.ReflectedType
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: i386
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: charlie at nunit.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Gecko/2009021910 Firefox/3.0.7

The following code...

using System;
using System.Reflection;

class Bug
    static void Main()
        Type type = typeof(Derived);
        ParameterInfo parm = method.GetParameters()[0];
        Console.WriteLine( parm.Member.ReflectedType.FullName );
        Console.WriteLine( parm.Member.DeclaringType.FullName );

class Base
    public void SomeMethod( int x )

class Derived : Base

Produces this output under MS .NET


And this under Mono 2.0 through 2.4


Reproducible: Always

Steps to Reproduce:

This prevents several new NUnit features from working under Mono.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list