Overriding a property's accessor via a MethodImpl can cause the property to disappear from Reflection - by Fabian Schmied

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 757478 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 8/8/2012 5:17:27 AM
Access Restriction Public


When overriding a method "explicitly", via the MethodImpl metadata mechanism, it is allowed for the override to be less accessible than the overridden method (as per ECMA-335, II.10.3.3). However, overriding the virtual get and set accessor methods of a public property with private methods causes the respective property to disappear from Type.GetProperties Reflection calls (even when specifying to return public and non-public members). If any of the overriding methods is public, GetProperties once again works correctly.

(See also "http://stackoverflow.com/questions/11845270/emit-of-explicit-method-override-hides-property/11846827#11846827".)
Sign in to post a comment.
Posted by Immo [MSFT] on 2/21/2013 at 7:22 AM
Thank you for your feedback. We are not going to be able to address this issue in our next release due to other priorities.

Immo Landwerth
.NET Framework team
Posted by Fabian Schmied on 1/24/2013 at 5:17 AM
Is there an explanation for why this issue was closed as "Won't Fix"?
Posted by Fabian Schmied on 1/15/2013 at 1:00 AM
Is there an explanation for why this issue is closed as "Won't Fix"?
Posted by Macy [MSFT] on 8/8/2012 at 10:43 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Helen [MSFT] on 8/8/2012 at 5:53 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)