Ошибка компилятора C3458Compiler Error C3458
"атрибут1": атрибут "атрибут2" уже задан для "конструкции"'attribute1': attribute 'attribute2' already specified for 'construct'
Для одной и той же конструкции заданы два атрибута, которые являются взаимоисключающими.Two attributes that are mutually exclusive were specified for the same construct.
ПримерExample
Следующий пример приводит к возникновению ошибки C3458:The following sample generates 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);
}
};