public static void removeHandler(Func func) { lock (lockObj) { List temp = new List(Sys.FuncType, m_handlers); temp.remove(func); m_handlers = (Func[])temp.toArray(new Func[temp.sz()]); } }