编译器错误 C3454
类声明中不允许出现 [attribute]
必须为它定义一个类,使其成为特性。
有关详细信息,请参阅 属性。
示例
下面的示例生成 C3454。
// C3454.cpp
// compile with: /clr /c
using namespace System;
[attribute] // C3454
ref class Attr1;
[attribute] // OK
ref class Attr2 {};
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈