“property_name”:不能获取属性地址
注解
开发人员无法获取属性的地址。
Example
以下示例生成 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
}