EventObserver.subscribe

Subscribes an event handler to an event.

class EventObserver
void
subscribe
(
TEventArgs : EventArgs
)
(
string eventName
,
)

Parameters

eventName
Type: string

The event to subscribe to.

handler
Type: EventHandler!TEventArgs

The event handler.

Meta