Tracks events in a hashset. More...
Public Member Functions | |
delegate void | ForEachCallback (T item) |
void | Remove (T item) |
Remove an item from the event set More... | |
void | ForEach (ForEachCallback callback) |
Iterate and invoke the callback on all items. More... | |
Static Public Member Functions | |
static ksEventSet< T > | operator+ (ksEventSet< T > lhs, T rhs) |
Adds an event handler to the event. More... | |
static ksEventSet< T > | operator- (ksEventSet< T > lhs, T rhs) |
Adds an event handler to the event. More... | |
Public Attributes | |
List< T > | Handlers = new List<T>() |
Tracks events in a hashset.
T |
void KS.Reactor.ksEventSet< T >.ForEach | ( | ForEachCallback | callback | ) |
Iterate and invoke the callback on all items.
callback |
|
static |
Adds an event handler to the event.
lhs | Event to add handler to. |
rhs | Handler to add. |
|
static |
Adds an event handler to the event.
lhs | Event to add handler to. |
rhs | Handler to add. |
void KS.Reactor.ksEventSet< T >.Remove | ( | T | item | ) |
Remove an item from the event set
item | Item to be removed |