public virtual void Reset () { if (Wrapped is WrappedSystemStream) ((WrappedSystemStream)Wrapped).InputStream.Reset (); else { if (Wrapped == null) throw new IOException (); Wrapped.Position = _mark; } }