Пример #1
0
        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);
        }
Пример #2
0
 protected bool Equals(ActionEventHandler <T> other)
 {
     return(Equals(Action, other.Action));
 }
Пример #3
0
        public bool Contains <T>(Action <T> action)
        {
            var compare = new ActionEventHandler <T>(action);

            return(list.ContainsValue(compare));
        }