Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

EnvDTE / EnvDTE80, CodeTypeRef2 and generic types

$
0
0

We are working on a Custom Tool / Single File Generator on Visual Studio 2010 / C# (.NET 4).

As part of this, we get a reference to the DTE / DTE80 and ultimately end up with a CodeTypeRef2 for properties.

As an example, the "AsFullName" returns "System.Collections.Generic.List<System.String>" because the property returns a List<string>.

What I am trying to do is get the type information for the generic parameter (preferably another CodeTypeRef(2), that is, System.String.  The IsGeneric property tells me that I am dealing with a generic type, however I cannot seem to figure out how to get the details of that generic type.

Any ideas?



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>