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

Getting the type of a template parameter

$
0
0

Using VCCodeClass::TemplateParameters I want to retrieve the type of the template parameter.
Here is the the template class:

template <class T>
class t
{
    t( void );
    void f( void );
};

In C# I cast the elements of the TemplateParameters collection to VCCodeParameter and then use either TypeString or FullName. Both always return only "T".
How can I get either "class T" or "class"? Or in case of this: <int C>, "int C" or "int"?

I am using VS Professional 2013
Version 12.030723.00 Update 3

Thank You!


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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