public override int ReadByte()
                {
                    int num;

                    try
                    {
                        num = base.BaseStream.ReadByte();
                    }
                    catch (ObjectDisposedException exception)
                    {
                        throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(exception.Message, exception));
                    }
                    catch (IOException exception2)
                    {
                        throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(HttpChannelUtilities.CreateResponseIOException(exception2, TimeoutHelper.FromMilliseconds(this.ReadTimeout)));
                    }
                    catch (WebException exception3)
                    {
                        throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(HttpChannelUtilities.CreateResponseWebException(exception3, this.webResponse));
                    }
                    return(num);
                }
                public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
                {
                    IAsyncResult result;

                    try
                    {
                        result = base.BaseStream.BeginRead(buffer, offset, Math.Min(count, 0x10000), callback, state);
                    }
                    catch (IOException exception)
                    {
                        throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(HttpChannelUtilities.CreateResponseIOException(exception, TimeoutHelper.FromMilliseconds(this.ReadTimeout)));
                    }
                    catch (ObjectDisposedException exception2)
                    {
                        throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new CommunicationException(exception2.Message, exception2));
                    }
                    catch (WebException exception3)
                    {
                        throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(HttpChannelUtilities.CreateResponseWebException(exception3, this.webResponse));
                    }
                    return(result);
                }