Skip to content

Commit 1503202

Browse files
carlossanlopRon Petrusha
authored andcommitted
Automatically port System.Xml.Linq.XDocument triple slash (#3097)
* Automatically port System.Xml.Linq.XDocument triple slash * Missing returns and xrefs * remove bom character * suggestions by rpetrusha, mairaw, krwq Co-Authored-By: Ron Petrusha <[email protected]> * suggestions by rpetrusha * missed </remarks>
1 parent 7766c55 commit 1503202

File tree

1 file changed

+69
-37
lines changed

1 file changed

+69
-37
lines changed

xml/System.Xml.Linq/XDocument.xml

Lines changed: 69 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,12 +1654,20 @@ Root 1 2
16541654
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="2" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
16551655
</Parameters>
16561656
<Docs>
1657-
<param name="stream">To be added.</param>
1658-
<param name="options">To be added.</param>
1659-
<param name="cancellationToken">To be added.</param>
1660-
<summary>To be added.</summary>
1661-
<returns>To be added.</returns>
1662-
<remarks>To be added.</remarks>
1657+
<param name="stream">A stream containing the raw XML to read into the newly created <see cref="T:System.Xml.Linq.XDocument" />.</param>
1658+
<param name="options">A set of load options.</param>
1659+
<param name="cancellationToken">A cancellation token.</param>
1660+
<summary>Asynchronously creates a new <see cref="T:System.Xml.Linq.XDocument" /> and initializes its underlying XML tree from the specified stream, optionally preserving white space.</summary>
1661+
<returns>A new XDocument containing the contents of the specified <see cref="T:System.IO.Stream" />.</returns>
1662+
<remarks>
1663+
<format type="text/markdown"><![CDATA[
1664+
1665+
## Remarks
1666+
1667+
If <xref:System.Xml.Linq.LoadOptions.PreserveWhitespace?displayProperty=nameWithType> is set, the underlying <xref:System.Xml.XmlReaderSettings.IgnoreWhitespace?displayProperty=nameWithType> property is set to `false`.
1668+
1669+
]]></format>
1670+
</remarks>
16631671
</Docs>
16641672
</Member>
16651673
<Member MemberName="LoadAsync">
@@ -1690,12 +1698,20 @@ Root 1 2
16901698
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="2" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
16911699
</Parameters>
16921700
<Docs>
1693-
<param name="textReader">To be added.</param>
1694-
<param name="options">To be added.</param>
1695-
<param name="cancellationToken">To be added.</param>
1696-
<summary>To be added.</summary>
1697-
<returns>To be added.</returns>
1698-
<remarks>To be added.</remarks>
1701+
<param name="textReader">A reader that contains the raw XML to read into the newly created <see cref="T:System.Xml.Linq.XDocument" />.</param>
1702+
<param name="options">A set of load options.</param>
1703+
<param name="cancellationToken">A cancellation token.</param>
1704+
<summary>Creates a new <see cref="T:System.Xml.Linq.XDocument" /> and initializes its underlying XML tree using the specified <see cref="T:System.IO.TextReader" /> parameter, optionally preserving white space.</summary>
1705+
<returns>A new XDocument containing the contents of the specified <see cref="T:System.IO.TextReader" />.</returns>
1706+
<remarks>
1707+
<format type="text/markdown"><![CDATA[
1708+
1709+
## Remarks
1710+
1711+
If <xref:System.Xml.Linq.LoadOptions.PreserveWhitespace?displayProperty=nameWithType> is set, the <xref:System.Xml.XmlReaderSettings.IgnoreWhitespace?displayProperty=nameWithType> property is set to `false`.
1712+
1713+
]]></format>
1714+
</remarks>
16991715
</Docs>
17001716
</Member>
17011717
<Member MemberName="LoadAsync">
@@ -1726,11 +1742,11 @@ Root 1 2
17261742
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="2" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
17271743
</Parameters>
17281744
<Docs>
1729-
<param name="reader">To be added.</param>
1730-
<param name="options">To be added.</param>
1731-
<param name="cancellationToken">To be added.</param>
1732-
<summary>To be added.</summary>
1733-
<returns>To be added.</returns>
1745+
<param name="reader">A reader containing the XML to be read into the new <see cref="T:System.Xml.Linq.XDocument" />.</param>
1746+
<param name="options">A set of load options.</param>
1747+
<param name="cancellationToken">A cancellation token.</param>
1748+
<summary>Creates a new <see cref="T:System.Xml.Linq.XDocument" /> containing the contents of the specified <see cref="T:System.Xml.XmlReader" />.</summary>
1749+
<returns>A new XDocument containing the contents of the specified <see cref="T:System.Xml.XmlReader" />.</returns>
17341750
<remarks>To be added.</remarks>
17351751
</Docs>
17361752
</Member>
@@ -2771,10 +2787,10 @@ Console.WriteLine(File.ReadAllText("Root2.xml"))
27712787
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="1" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
27722788
</Parameters>
27732789
<Docs>
2774-
<param name="writer">To be added.</param>
2775-
<param name="cancellationToken">To be added.</param>
2776-
<summary>To be added.</summary>
2777-
<returns>To be added.</returns>
2790+
<param name="writer">The writer to output the XML to.</param>
2791+
<param name="cancellationToken">A cancellation token.</param>
2792+
<summary>Writes this <see cref="T:System.Xml.Linq.XDocument" /> to an <see cref="T:System.Xml.XmlWriter" />.</summary>
2793+
<returns>A task representing the asynchronous save operation.</returns>
27782794
<remarks>To be added.</remarks>
27792795
</Docs>
27802796
</Member>
@@ -2806,12 +2822,20 @@ Console.WriteLine(File.ReadAllText("Root2.xml"))
28062822
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="2" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
28072823
</Parameters>
28082824
<Docs>
2809-
<param name="stream">To be added.</param>
2810-
<param name="options">To be added.</param>
2811-
<param name="cancellationToken">To be added.</param>
2812-
<summary>To be added.</summary>
2813-
<returns>To be added.</returns>
2814-
<remarks>To be added.</remarks>
2825+
<param name="stream">The stream to write the XML to.</param>
2826+
<param name="options">A set of load options.</param>
2827+
<param name="cancellationToken">A cancellation token.</param>
2828+
<summary>Output this <see cref="T:System.Xml.Linq.XDocument" /> to a <see cref="T:System.IO.Stream" />.</summary>
2829+
<returns>A task representing the asynchronous save operation.</returns>
2830+
<remarks>
2831+
<format type="text/markdown"><![CDATA[
2832+
2833+
## Remarks
2834+
2835+
If <xref:System.Xml.Linq.SaveOptions.DisableFormatting?displayProperty=nameWithType> is set, the output is not indented. If <xref:System.Xml.Linq.SaveOptions.OmitDuplicateNamespaces?displayProperty=nameWithType> is set, duplicate namespace declarations will be removed.
2836+
2837+
]]></format>
2838+
</remarks>
28152839
</Docs>
28162840
</Member>
28172841
<Member MemberName="SaveAsync">
@@ -2842,12 +2866,20 @@ Console.WriteLine(File.ReadAllText("Root2.xml"))
28422866
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="2" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
28432867
</Parameters>
28442868
<Docs>
2845-
<param name="textWriter">To be added.</param>
2846-
<param name="options">To be added.</param>
2847-
<param name="cancellationToken">To be added.</param>
2848-
<summary>To be added.</summary>
2849-
<returns>To be added.</returns>
2850-
<remarks>To be added.</remarks>
2869+
<param name="textWriter">The text writer to output the XML to.</param>
2870+
<param name="options">A set of load options.</param>
2871+
<param name="cancellationToken">A cancellation token.</param>
2872+
<summary>Writes this <see cref="T:System.Xml.Linq.XDocument" /> to a <see cref="T:System.IO.TextWriter" />.</summary>
2873+
<returns>A task representing the asynchronous save operation.</returns>
2874+
<remarks>
2875+
<format type="text/markdown"><![CDATA[
2876+
2877+
## Remarks
2878+
2879+
If <xref:System.Xml.Linq.SaveOptions.DisableFormatting?displayProperty=nameWithType> is set, the output is not indented. If <xref:System.Xml.Linq.SaveOptions.OmitDuplicateNamespaces?displayProperty=nameWithType> is set, duplicate namespace declarations will be removed.
2880+
2881+
]]></format>
2882+
</remarks>
28512883
</Docs>
28522884
</Member>
28532885
<Member MemberName="WriteTo">
@@ -2967,10 +2999,10 @@ Console.WriteLine(sb.ToString())
29672999
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="1" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1" />
29683000
</Parameters>
29693001
<Docs>
2970-
<param name="writer">To be added.</param>
2971-
<param name="cancellationToken">To be added.</param>
2972-
<summary>To be added.</summary>
2973-
<returns>To be added.</returns>
3002+
<param name="writer">The writer to output the content of this <see cref="T:System.Xml.Linq.XDocument" />.</param>
3003+
<param name="cancellationToken">A cancellation token.</param>
3004+
<summary>Writes this XDocument's underlying XML tree to the specified <see cref="T:System.Xml.XmlWriter" />.</summary>
3005+
<returns>A task representing the asynchronous write operation.</returns>
29743006
<remarks>To be added.</remarks>
29753007
</Docs>
29763008
</Member>

0 commit comments

Comments
 (0)