“attribute1”: 已为“construct”指定特性“attribute2”
为同一个构造指定了两个互相排斥的特性。
示例
下面的示例生成 C3458
// C3458.cpp
// compile with: /clr /c
[System::Reflection::DefaultMember("Chars")]
public ref class MyString {
public:
[System::Runtime::CompilerServices::IndexerName("Chars")] // C3458
property char default[int] {
char get(int index);
void set(int index, char c);
}
};