Event

Description

class Tinman.Core.Util.Event

Derived from

Disposable abstract
IEvent
IEventListener

Extended by

EventGeneric sealed

The Event class implements the observer pattern.

Protected / Methods

Do​Clear


protected virtual method DoClear → ()

Removes all registered listeners.

Do​Has​Listeners


protected virtual method DoHasListeners → ()

returns → bool

true if there are one or more registered listeners,
false if there are none.

Checks if there are any registered listeners.

Do​Snapshot


protected virtual method DoSnapshot → ()

returns → IEventListener

The snapshot object.

Creates the snapshot object that captures the registered listeners.