public void AddBefore(BeforeAction <T> action) { if (before.Exists(a => a.IsSame(action))) { throw EventHandlerAlreadyExistsException.CreateFromKey(action.Name); } before.Add(action); }
public bool IsSame(BeforeAction <T> action) { return(Signature.IsSame(action.Signature)); }