コード例 #1
0
        public static bool Contains <T> (string messageName, Del <T> handler) where T : LSMessage
        {
            object o;

            if (events.TryGetValue(messageName, out o) == false)
            {
                return(false);
            }
            FastList <Del <T> > dels = o as FastList <Del <T> >;

            if (dels == null)
            {
                return(false);
            }
            if (dels.Contains(handler))
            {
                return(true);
            }
            return(false);
        }