特性无法应用于 C++ varargs
未正确应用特性。 特性不能应用于表示变量参数的省略号。
有关更多信息,请参见 User-Defined Attributes。
示例
下面的示例生成 C3133。
// C3133.cpp
// compile with: /clr /c
ref struct MyAttr: System::Attribute {};
void Func([MyAttr]...); // C3133
void Func2([MyAttr] int i); // OK