source/SchemaValidation/source/SchemaValidation/Extensions/SchemaValidatingReaderExtensions.cs
/// <summary>
/// Do not use this method, it is provided for compatibility.
/// Uses the specified reader to validate and read XML into an XElement.
/// </summary>
/// <param name="reader">The reader to use.</param>
/// <returns>A loaded XElement.</returns>
Do not use this method, it is provided for compatibility.
Uses the specified reader to validate and read XML into an XElement.
Do not use this method it is provided for compatibility . Uses the specified reader to validate and read XML into an XElement .
public static Task<XElement?> AsXElementAsync(this SchemaValidatingReader reader)
        {
            var innerReader = reader.GetXmlValidatingReader();
            return innerReader.ReadIntoXElementAsync();
        }
public static Task < XElement ? > AsXElementAsync ( this SchemaValidatingReader reader ) { var innerReader = reader . GetXmlValidatingReader ( ) ; return innerReader . ReadIntoXElementAsync ( ) ; }
Do not use this method, it is provided for compatibility.
Do not use this method it is provided for compatibility .
A loaded XElement.
A loaded XElement .
SchemaValidatingReader
this
reader
The reader to use.
The reader to use .