'default' : trivial 屬性不能使用這個名稱
trivial 屬性不可命名為 default
。 如需詳細資訊,請參閱 property 。
範例
下列範例會產生 C3291:
// C3291.cpp
// compile with: /clr /c
ref struct C {
property System::String ^ default; // C3291
property System::String ^ Default; // OK
};