Compiler Error C3237
'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 {};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for