Kompilatorfel C3237

"generic_class" : en generisk klass kan inte vara ett anpassat attribut

Anmärkningar

Generiska klasser kan inte vara användardefinierade attribut.

Example

I följande exempel genereras C3237.

// C3237.cpp
// compile with: /clr /c
// C3237 expected
using namespace System;

generic <class T>
// Delete the following line to resolve.
[attribute(AttributeTargets::All, AllowMultiple=true)]
public ref class GR {};