Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
default property must be indexed
Remarks
A default property was defined incorrectly.
For more information, see property.
Example
The following example generates C3913:
// C3913.cpp
// compile with: /clr /c
ref struct X {
property int default { // C3913
// try the following line instead
// property int default[int] {
int get(int) { return 0; }
void set(int, int) {}
}
};