private static void invokeCallback(object state) { try { var ares = (ListenerAsyncResult) state; ares._callback (ares); } catch { } }