public bool Remove <T>(Action <T> action) { var compare = new ActionEventHandler <T>(action); var pos = list.IndexOfValue(compare); if (pos == -1) { return(false); } list.RemoveAt(pos); return(true); }
protected bool Equals(ActionEventHandler <T> other) { return(Equals(Action, other.Action)); }
public bool Contains <T>(Action <T> action) { var compare = new ActionEventHandler <T>(action); return(list.ContainsValue(compare)); }