public override void SetLength(long value) { if (_disposed) throw new ObjectDisposedException(this.GetType().FullName); if (value < 0 || _length < value) throw new ArgumentOutOfRangeException(nameof(value)); _length = value; }