E
Edward Diener
One can specify an event as either the raw event:
__event System::EventHandler * OnSomethingChanged;
or as a series of add_,remove_, and raise_ methods:
__event virtual void remove_OnSomethingChanged(System::EventHandler *);
__event virtual void add_OnSomethingChanged(System::EventHandler *);
__event virtual void raise_OnSomethingChanged(System::Object,
*System::EventHandler *);
In the latter case, when creating an attribute for the event, ie.
[System::ComponentModel:escriptionAttribute("Something Changed")] , is it
sufficient to specify it before any one of the __event member functions, or must
one repeat the attribute for all ?
__event System::EventHandler * OnSomethingChanged;
or as a series of add_,remove_, and raise_ methods:
__event virtual void remove_OnSomethingChanged(System::EventHandler *);
__event virtual void add_OnSomethingChanged(System::EventHandler *);
__event virtual void raise_OnSomethingChanged(System::Object,
*System::EventHandler *);
In the latter case, when creating an attribute for the event, ie.
[System::ComponentModel:escriptionAttribute("Something Changed")] , is it
sufficient to specify it before any one of the __event member functions, or must
one repeat the attribute for all ?