Allow the option to get private/internal metadata symbols

Topics: APIs
Apr 28, 2014 at 8:44 PM
Currently, to get the ISymbols for private/internal members on referenced assemblies, I need to use reflection to call the CSharpCompilationOptions.WithMetadataImportOptions, specifying a value of All, to get the proper options for creating a compilation. However, I am not sure if this will work in all cases, and I would prefer to not use reflection when working with Roslyn. Please make this method and the MetadataImportOptions enum exposed publicly, or provide some other mechanism for making private/internal metadata available from the semantic model.