Export (0) Print
Expand All
Expand Minimize

Compiler Error C3291

Error Message

'default' : cannot be the name of a trivial property

A trivial property cannot be named default. See property for more information.

Example

The following sample generates C3291.

// C3291.cpp
// compile with: /clr /c
ref struct C {
   property System::String ^ default;   // C3291
   property System::String ^ Default;   // OK
};

Community Additions

ADD
Show:
© 2015 Microsoft