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.
'accessor_function': must have return type 'type'
At least one get method's return type must match the property type. For more information, see property.
The following sample generates C3901:
// C3901.cpp
// compile with: /clr /c
using namespace System;
ref class X {
property String^ Name {
void get(); // C3901
// try the following line instead
// String^ get();
};
};
ref class Y {
property double values[int, int] {
int get(int, int); // C3901
// try the following line instead
// double get(int, int);
};
};