private void ThrowIfCantSeek() { if (!CanSeek) throw new NotSupportedException(SR.SeekingNotSupported); }