PropertyStoreAddEvent Method |
Adds a generic event delegate with the specified key
Namespace:
Eto
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public void AddEvent(
Object key,
Delegate value
)
Public Sub AddEvent (
key As Object,
value As Delegate
)
member AddEvent :
key : Object *
value : Delegate -> unit
Parameters
- key
- Type: SystemObject
Key of the event to add to - value
- Type: SystemDelegate
Delegate to add to the event
Remarks Examples
Example implementation of a generic event
static readonly object MySomethingEventKey = new object();
public event EventHandler<EventArgs> MySomething
{
add { Properties.AddEvent(MySomethingEvent, value); }
remove { Properties.RemoveEvent(MySomethingEvent, value); }
}
See Also