G
Guest
I have this funny problem defining a C++ (VC++ 2002) managed class index
property:
public: __property virtual String __gc *get_Prefixes(int aiIndex) {
return m_pDatasetList->Prefixes[aiIndex].c_str();
}
or
public: __property String __gc *get_Prefixes(int aiIndex) {
return m_pDatasetList->Prefixes[aiIndex].c_str();
}
It does not get resolved to a property but stays a method get_Prefixes()
when viewed in C# (2003) object browser.
But I expect it something like this "Prefixes[number]"
Other none indexed poperties defined in that same class does get resolved to
properties.
Any idea what I do wrong? The examples show me that I do make it correct.
property:
public: __property virtual String __gc *get_Prefixes(int aiIndex) {
return m_pDatasetList->Prefixes[aiIndex].c_str();
}
or
public: __property String __gc *get_Prefixes(int aiIndex) {
return m_pDatasetList->Prefixes[aiIndex].c_str();
}
It does not get resolved to a property but stays a method get_Prefixes()
when viewed in C# (2003) object browser.
But I expect it something like this "Prefixes[number]"
Other none indexed poperties defined in that same class does get resolved to
properties.
Any idea what I do wrong? The examples show me that I do make it correct.