Exemple #1
0
        public void SendEvent(IEventSender sender, XEvent ev)
        {
            string suffix = HandlingMethodSuffix(ev.GetType());
            List <HandlingMethod> evHandlers;

            if (handlers.TryGetValue(suffix, out evHandlers))
            {
                foreach (HandlingMethod meth in evHandlers)
                {
                    meth.Invoke(sender, ev);
                }
            }
        }