Skip to content

Commit

Permalink
Updated Xml.DelegatingXmlReader to support close and ReadContentAsUni…
Browse files Browse the repository at this point in the history
…queId
  • Loading branch information
MoSelem authored and brentschmaltz committed Oct 6, 2023
1 parent c1a63dd commit 5cd6ed6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Microsoft.IdentityModel.Xml/DelegatingXmlDictionaryReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,15 @@ public override XmlSpace XmlSpace
get => UseInnerReader.XmlSpace;
}

/// <summary>
/// Closes the reader and changes the System.Xml.XmlReader.ReadState
/// to Closed.
/// </summary>
public override void Close()
{
UseInnerReader.Close();
}

/// <summary>
/// Gets the value of the InnerReader's attribute at the given index.
/// </summary>
Expand Down Expand Up @@ -419,6 +428,14 @@ public override int ReadContentAsBinHex(byte[] buffer, int index, int count)
return UseInnerReader.ReadContentAsBinHex(buffer, index, count);
}

/// <summary>
/// Reads the content and returns the contained string.
/// </summary>
public override UniqueId ReadContentAsUniqueId()
{
return UseInnerReader.ReadContentAsUniqueId();
}

/// <summary>
/// Resolves the InnerReader's EntityReference nodes.
/// </summary>
Expand Down

0 comments on commit 5cd6ed6

Please sign in to comment.