[Mono-bugs] [Bug 574696] New: Type.GetMember returns private property of base class

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 28 06:23:15 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=574696

http://bugzilla.novell.com/show_bug.cgi?id=574696#c0


           Summary: Type.GetMember returns private property of base class
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eb1 at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Consider the following two classes:

class Base
{
    private string Prop { get; set; }
    private string Method() { }
...
}

class Derived: Base
{
...
}

Calling 

typeof(Derived).GetMember("Prop", BindingFlags.NonPublic | BindingFlags.Public
| BindingFlags.Instance)

returns the property of the base class. It works correctly for a method.

Expected result: GetMember doesn't return the property. That's also the way
NET behaves.

This bug is related to bug #322762

-- 
Configure bugmail: http://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