protected async Task StartContentAsync() { await FlushElementAsync().ConfigureAwait(false); if (_depth == 0) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.XmlIllegalOutsideRoot))); }