[Mono-bugs] [Bug 337401] Monodoc will list a property as "Protected" if one of its accessors is protected

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 28 16:56:53 EDT 2007


Jonathan Pryor <jonpryor at vt.edu> changed:

           What    |Removed                                         |Added
                 CC|                                                |jonpryor at vt.edu

--- Comment #1 from Jonathan Pryor <jonpryor at vt.edu>  2007-10-28 14:56:53 MST ---
The problem is twofold:

1. PropertyInfo doesn't have an accessibility property.  Consequently,
monodocer tries to deduce the accessibility based on the accessibility of the
get/set accessors.

2. monodocer was originally written for C# 1.0 syntax generation.

This comes together in CSharpFullMemberFormatter.GetPropertyDeclaration()
(monodocer.cs:2945-2968): if the visibility differs between the get/set
accessors, the visibility of the set accessor is used as the visibility of the
entire property (thus `protected' in your example), and (because C# 1.0 is
currently generated here) the visibility of the `get' accessor is NOT generated
in the output.

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

More information about the mono-bugs mailing list