void ReadCallbackWrapper (IAsyncResult r) { WebAsyncResult result; if (r.AsyncState != null) { result = (WebAsyncResult) r.AsyncState; result.InnerAsyncResult = r; result.DoCallback (); } else { try { EndRead (r); } catch { } } }