Problem with Attributes on Plugin controls

I wanted to put the new DefaultEvent attribute on plugin control (I saw this new attribute in Normals article on his web).

Everything seemed to go fine, the Attribute worked, made the event default and all that.

But…once I have Attribute on Plugin control, and then I mean any attribute…then I cannot compile any more. Regardless if its the DefaultEvent Attribute or just custom one called “Test”.

This is the error that will come:

And as soon as I remove attribute again then, it will compile just fine.

Turns out I was just not realizing that Attributes have type.

So the following fixes it and there is no problem at all:

static REALattribute CalendarControlAttributes[] =
{
{“DefaultEvent”, ““SelectedChanged””},
};