Compiler Error C3296
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3296.
property' : a property with this name already exists
The compiler encountered more than one property with the same name. Each property in a type must have a unique name.
For more information, see property.
The following sample generates C3296.
// C3296.cpp
// compile with: /clr /c
using namespace System;
ref class R {
public:
property int MyProp[int] { int get(int); }
property String^ MyProp[int] { void set(int, String^); } // C3296
};
Show: