Compiler Error C2364
Visual Studio 2010
'type': illegal type for custom attribute
Named arguments for custom attributes are limited to compile time constants. For example, integral types (int, char, etc.), System::Type^, and System::Object^.