C# Class Microsoft.Scripting.Actions.EventTracker.HandlerList

Holds on a list of delegates hooked to the event. We need the list because we cannot enumerate the delegates hooked to CLR event and we need to do so in handler removal (we need to do custom delegate comparison there). If BCL enables the enumeration we could remove this.
Mostra file Open project: jschementi/iron

Public Methods

Method Description
AddHandler ( object callableObject, Delegate handler ) : void
RemoveHandler ( object callableObject, IEqualityComparer comparer ) : Delegate

Method Details

AddHandler() public abstract method

public abstract AddHandler ( object callableObject, Delegate handler ) : void
callableObject object
handler System.Delegate
return void

RemoveHandler() public abstract method

public abstract RemoveHandler ( object callableObject, IEqualityComparer comparer ) : Delegate
callableObject object
comparer IEqualityComparer
return System.Delegate