-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add switch to include private members in PE symbols #5049
Comments
This is also gonna be needed to support |
Would making CompilationOptions.MetadataImportOptions public address the gap? |
@AlekseyTs We will need to do this per-reference for scripting, not per-compilation. |
@AlekseyTs Thanks for pointing out Making this public would be nice. But a have an acceptable workaround at the moment. So holding this off in favour of doing what's needed for scripting would be fine by me. |
In Roslyn v1.0, private fields/properties/methods (and nested types) are not exposed by calls like
INamedTypeSymbol.GetMembers()
, in case such a type was constructed from a referenced assembly instead of source code.For the project I'm currently working on (backporting a Roslyn-based analyzer into FxCop rules for use in previous versions of Visual Studio), I would like a switch to become available in Roslyn vNext, to include private members.
For example, when exposed through
MetadataReferenceProperties
, I could write code like:The text was updated successfully, but these errors were encountered: