This project is read-only.
3
Vote

Expose Method to Retrieve Fully Qualified Metadata Name

description

There are a few instances within the Roslyn API where one must provide the fully qualified metadata name of a symbol in order to retrieve it.

For example: Compilation.GetTypeByMetadataName()

It can be difficult to manually figure out the metadata name when working with nested types. Issue #294 also notes that it's currently difficult to retrieve the types in which it's nested.

The property ISymbol.MetadataName only returns the name of the type, without its encompassing namespaces or types.

comments

ygramul wrote Nov 25, 2014 at 6:48 AM

I've answered my own question on SO with a workaround for now which so far appears to work correctly for types (I only needed types to work correctly for my use case).