public override Task WriteEndElementAsync()
{
if (IsClosed)
ThrowClosed();
if (_depth == 0)
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.Format(SR.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture))));
return WriteEndElementAsyncImpl();
}