public object remove(object val) { // modify in removeAt(long) Long i = index(val); if (i == null) return null; return removeAt(i.longValue()); }
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()]); } }