C
cortfr
If I compile the following code in my managed c++ dll...
public ref class foo
{
public:
void doSomething() { }
};
public ref class bar { };
and then inspect the resulting dll using ildasm... I can see that foo
and bar both have a function called doSomething.
However, if foo is a template and bar inherits from it, e.g.
template <typename t>
public ref class foo
{
public:
void doSomething() { }
};
public ref class bar : public foo<System::String> { };
Then both bar and the foo template instance do not have the doSomething
function according to ildasm (and my client assemblies).
What am I doing wrong? thanks.
public ref class foo
{
public:
void doSomething() { }
};
public ref class bar { };
and then inspect the resulting dll using ildasm... I can see that foo
and bar both have a function called doSomething.
However, if foo is a template and bar inherits from it, e.g.
template <typename t>
public ref class foo
{
public:
void doSomething() { }
};
public ref class bar : public foo<System::String> { };
Then both bar and the foo template instance do not have the doSomething
function according to ildasm (and my client assemblies).
What am I doing wrong? thanks.