We're using the Visual Studio CodeModel and have some problems to get the generic parameters of a CodeType. How to obtain them without parsing the FullName
ourselves?
It is hinted (although not marked an answer) in How can I get the generic constraints from CodeInterface as a CodeType object? that there is no other way, however, this is not really believable as:
System.Func<Outer.Inner>
would not be defined: You cannot know if the generic parameter you've parsed (Outer.Inner
) is referring to the namespace Outer
containing a class Inner
or if it is referring to the class Outer
having an inner class Inner
(and yes, it is not Outer+Inner
in such cases).
If somebody at least knows how to tell the FullName property to show nested classes with a +
sign this would be great too.