public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, Object state) { if (m_Position+offset > m_Offset+m_Size) { throw new NotSupportedException(SR.GetString(SR.net_cache_unsupported_partial_stream)); } return m_ParentStream.BeginWrite(buffer, offset, count, callback, state); }