Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'generic_class' : a generic class cannot be a custom attribute
Generic classes cannot be user-defined attributes.
Example
The following sample generates 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 {};