I've been trying this for about 45 minutes now, but I can't seem to figure out how to get a list of all of the INamedTypeSymbol available in a given compilation. I tried digging through the Compilation.GetTypeByMetadataName stuff, but couldn't figure it out.
I tried using Compilation.GlobalNamespace.GetTypeMembers() and it seems to give me all the IModuleSymbols that are referenced by the current project. (I see mscorlib, System.Core etc.) I then tried getting the type members inside these modules, but they were either empty or contained PrivateImplementation stuff.
Is there an API to get access to all the INamedTypeSymbols available in a compilation?
I've been trying this for about 45 minutes now, but I can't seem to figure out how to get a list of all of the
INamedTypeSymbolavailable in a given compilation. I tried digging through theCompilation.GetTypeByMetadataNamestuff, but couldn't figure it out.I tried using
Compilation.GlobalNamespace.GetTypeMembers()and it seems to give me all theIModuleSymbolsthat are referenced by the current project. (I see mscorlib, System.Core etc.) I then tried getting the type members inside these modules, but they were either empty or containedPrivateImplementationstuff.Is there an API to get access to all the
INamedTypeSymbolsavailable in a compilation?