'<typename>' cannot be used as an attribute because it is not a class

An attempt was made to use a type that is not a class as an attribute.

Error ID: BC31503

To correct this error

  1. Define custom attributes as classes that derive from System.Attribute.

See also