Udostępnij za pomocą


Błąd kompilatora C3458

"attribute1": atrybut "attribute2" już określony dla "construct"

Uwagi

Dla tej samej konstrukcji określono dwa atrybuty, które wzajemnie się wykluczają.

Przykład

Poniższy przykład generuje kod 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);
   }
};