private void ThrowIfCantWrite() { if (!CanWrite) throw new NotSupportedException(SR.WritingNotSupported); } private void ThrowIfCantSeek()