https://bugzilla.novell.com/show_bug.cgi?id=488383


           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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7)
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

Derived
Base

And this under Mono 2.0 through 2.4

Base
Base

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to