コード例 #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));
        }