C# Class Controller.EventHandlerList

Collection to hold a list of keyed Delegates. Allows registering multiple Handlers against one type of Event
Inheritance: IDisposable
Datei anzeigen Open project: h07r0d/Netduino-Aquarium-Controller Class Usage Examples

Public Methods

Method Description
AddHandler ( object _key, Delegate _value ) : void

Adds a delegate to the list

Dispose ( ) : void
EventHandlerList ( ) : System
RemoveHandler ( object _key, Delegate _value ) : void

Removes a delegate from the list

this ( object _key ) : Delegate

Method Details

AddHandler() public method

Adds a delegate to the list
public AddHandler ( object _key, Delegate _value ) : void
_key object Key to identify the Handler
_value System.Delegate Delegate to store
return void

Dispose() public method

public Dispose ( ) : void
return void

EventHandlerList() public method

public EventHandlerList ( ) : System
return System

RemoveHandler() public method

Removes a delegate from the list
public RemoveHandler ( object _key, Delegate _value ) : void
_key object Key of handler to remove
_value System.Delegate Delegate to remove from list
return void

this() public method

public this ( object _key ) : Delegate
_key object
return System.Delegate