I
innes
Hi,
I'm unable to work out the syntax for explicit implementation of an
interface property.
Example Code:
-----
public interface class ITest
{
int M();
property int P { int get(); }
};
public ref class C : ITest
{
protected:
virtual int M() = ITest::M
{ return 0; }
virtual property int P = ITest: // <==============
{
int get()
{ return 0; }
}
};
-----
The line commented with an arrow is my wild guess at what the syntax
might be, but this doesn't compile.
Does anyone know the correct syntax?
Thanks,
Innes
I'm unable to work out the syntax for explicit implementation of an
interface property.
Example Code:
-----
public interface class ITest
{
int M();
property int P { int get(); }
};
public ref class C : ITest
{
protected:
virtual int M() = ITest::M
{ return 0; }
virtual property int P = ITest: // <==============
{
int get()
{ return 0; }
}
};
-----
The line commented with an arrow is my wild guess at what the syntax
might be, but this doesn't compile.
Does anyone know the correct syntax?
Thanks,
Innes