“property_name”:不能获取属性地址
开发人员无法获取属性的地址。
下面的示例生成 C3142:
// C3142_2.cpp
// compile with: /clr
using namespace System;
ref class CSize {
private:
property int Size {
int get();
}
};
int main() {
&CSize::Size; // C3142
}
“property_name”:不能获取属性地址
开发人员无法获取属性的地址。
下面的示例生成 C3142:
// C3142_2.cpp
// compile with: /clr
using namespace System;
ref class CSize {
private:
property int Size {
int get();
}
};
int main() {
&CSize::Size; // C3142
}