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=80344 --- shadow/80344 2007-01-30 06:28:17.000000000 -0500 +++ shadow/80344.tmp.6017 2007-01-30 06:33:52.000000000 -0500 @@ -140,6 +140,57 @@ What happens if you also define a set method in Derived:P1? ------- Additional Comments From [EMAIL PROTECTED] 2007-01-30 06:28 ------- Created an attachment (id=18582) New test case + +------- Additional Comments From [EMAIL PROTECTED] 2007-01-30 06:33 ------- +Result on MS with new test case: + +Constructor Derived:.ctor +Method Base:get_P1 +Method Base:get_P2 +Method Base:get_P3 +Method Base:set_P3 +Method Derived:get_P1 +Method Derived:get_P2 +Method Derived:GetHashCode +Method Derived:set_P2 +Method System.Object:Equals +Method System.Object:GetHashCode +Method System.Object:GetType +Method System.Object:ToString +Property Base:P3 +Property Derived:P1 +Property Derived:P2 + + +Result on Mono with new test case: +Constructor Derived:.ctor +Method Base:get_P1 +Method Base:get_P2 +Method Base:get_P3 +Method Base:set_P3 +Method Derived:get_P1 +Method Derived:get_P2 +Method Derived:GetHashCode +Method Derived:set_P2 +Method System.Object:Equals +Method System.Object:GetHashCode +Method System.Object:GetType +Method System.Object:ToString +Property Base:P1 +Property Base:P2 +Property Base:P3 +Property Derived:P1 +Property Derived:P2 + +I googled a bit and it looks like this is really a buggy ms +implementation for reflecting on properties only... (this behaviour +is there only for properties, the get_ and set_ methods corresponding +to the properties are there) the 'new' keyword doesn't change +anything (if I'm not wrong it's only there to remove a compiler +warning, it doesn't cause the metadata to change). I think the rule +would be that base properties are never returned if there are any +derived properties with the same name. + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
