public void InvokeHandler <T>(T args, EventType type) { if (!handlerList.ContainsKey(type)) { return; } EventHandlerList handlers = handlerList[type]; handlers.Invoke(args); }