Is it somehow possible to get the fully qualified name of the type contained in a TypeInfo
object?
In the debugger many of these values nicely show up as
I couldn't find something built-in either and I'm quite sure this isn't the most elegant way, but it worked for me to construct a qualified type name like this:
private static string GetQualifiedTypeName(ISymbol symbol)
{
return symbol.ContainingNamespace
+ "." + symbol.Name
+ ", " + symbol.ContainingAssembly;
}
If you don't need an assembly qualified type name don't concatenate ContainingAssembly
at the end of the last line.