Looking at the docs, I suspect you want AsString
instead of ToString()
. That would call CodeTypeRef.AsString
:
AsString return a string representation for the CodeTypeRef in the language being modeled. For example, if the vsCMTypeRef type is vsCMTypeRefInt, then the string would be "Int" for Visual C# and "Long" for Visual Basic.
I've never written this sort of code myself so I'm just going by the documentation, but it's worth a try :)