IEventGeneric

Description

interface Tinman.Core.Util.IEventGeneric<T out ref>

Derived from

IEvent

Extended by

EventGeneric sealed

The IEventGeneric class implements the observer pattern.

Public / Methods

Add​Delegate​Generic


[ThreadSafe]
public method AddDelegateGeneric → (1)

listener in : EventDelegateGeneric<T>

[not-null]
The listener to add.

Adds a new listener to this event.

If a listener object is added more than once to an event, it will be notified only once. However, the remove method must be called once for each call to the add method in order to actually remove the listener.

Add​Listener​Generic


[ThreadSafe]
public method AddListenerGeneric → (1)

listener in : IEventListenerGeneric<T>

[not-null]
The listener to add.

Adds a new listener to this event.

If a listener object is added more than once to an event, it will be notified only once. However, the remove method must be called once for each call to the add method in order to actually remove the listener.

Remove​Delegate​Generic


[ThreadSafe]
public method RemoveDelegateGeneric → (1)

listener in : EventDelegateGeneric<T>

[not-null]
The listener to remove.

Removes the given listener from the event.

Remove​Listener​Generic


[ThreadSafe]
public method RemoveListenerGeneric → (1)

listener in : IEventListenerGeneric<T>

[not-null]
The listener to remove.

Removes the given listener from the event.