Skip to content

Commit 37b8a99

Browse files
carlossanlopRon Petrushamairaw
committed
Automatically port System.Xml.Linq triple slash for async methods (#3096)
* Automatically port System.Xml.Linq triple slash for async methods * remove BOM character * remove BOM character * remove BOM character * remove BOM character * remove BOM character * remove BOM character * suggestions by rpetrusha and mairaw Co-Authored-By: Ron Petrusha <[email protected]> Co-Authored-By: Maira Wenzel <[email protected]>
1 parent 0d67243 commit 37b8a99

File tree

6 files changed

+27
-26
lines changed

6 files changed

+27
-26
lines changed

xml/System.Xml.Linq/XCData.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,10 @@ Text
356356
<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" />
357357
</Parameters>
358358
<Docs>
359-
<param name="writer">To be added.</param>
360-
<param name="cancellationToken">To be added.</param>
361-
<summary>To be added.</summary>
362-
<returns>To be added.</returns>
359+
<param name="writer">The writer to write this <see cref="T:System.Xml.Linq.XCData" /> to.</param>
360+
<param name="cancellationToken">A token that can be used to request cancellation of the asynchronous operation.</param>
361+
<summary>Writes this <see cref="T:System.Xml.Linq.XCData" /> to the given <see cref="T:System.Xml.XmlWriter" />.</summary>
362+
<returns>A task representing the asynchronous write operation.</returns>
363363
<remarks>To be added.</remarks>
364364
</Docs>
365365
</Member>

xml/System.Xml.Linq/XComment.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,9 @@ This is a comment
378378
<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" />
379379
</Parameters>
380380
<Docs>
381-
<param name="writer">To be added.</param>
382-
<param name="cancellationToken">To be added.</param>
383-
<summary>To be added.</summary>
381+
<param name="writer">The writer to write this <see cref="T:System.Xml.Linq.XComment" /> to.</param>
382+
<param name="cancellationToken">A token that can be used to request cancellation of the asynchronous operation.</param>
383+
<summary>Writes this <see cref="T:System.Xml.Linq.XComment" /> to the specified <see cref="T:System.Xml.XmlWriter" />.</summary>
384384
<returns>To be added.</returns>
385385
<remarks>To be added.</remarks>
386386
</Docs>

xml/System.Xml.Linq/XDocumentType.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,9 +849,9 @@ SystemId:Pubs.dtd
849849
<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" />
850850
</Parameters>
851851
<Docs>
852-
<param name="writer">To be added.</param>
853-
<param name="cancellationToken">To be added.</param>
854-
<summary>To be added.</summary>
852+
<param name="writer">The writer to write this <see cref="T:System.Xml.Linq.XDocumentType" /> to.</param>
853+
<param name="cancellationToken">A token that can be used to request cancellation of the asynchronous operation.</param>
854+
<summary>Writes this <see cref="T:System.Xml.Linq.XDocumentType" /> to the specified <see cref="T:System.Xml.XmlWriter" />.</summary>
855855
<returns>To be added.</returns>
856856
<remarks>To be added.</remarks>
857857
</Docs>

xml/System.Xml.Linq/XNode.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,11 +2702,12 @@ ccc
27022702
<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" />
27032703
</Parameters>
27042704
<Docs>
2705-
<param name="reader">To be added.</param>
2706-
<param name="cancellationToken">To be added.</param>
2707-
<summary>To be added.</summary>
2708-
<returns>To be added.</returns>
2705+
<param name="reader">A reader positioned at the node to read into this <see cref="T:System.Xml.Linq.XNode" />.</param>
2706+
<param name="cancellationToken">A token that can be used to request cancellation of the asynchronous operation.</param>
2707+
<summary>Creates an <see cref="T:System.Xml.Linq.XNode" /> from an <see cref="T:System.Xml.XmlReader" />. The runtime type of the node is determined by the <see cref="P:System.Xml.Linq.XObject.NodeType" /> of the first node encountered in the reader.</summary>
2708+
<returns>An XNode that contains the nodes read from the reader.</returns>
27092709
<remarks>To be added.</remarks>
2710+
<exception cref="T:System.InvalidOperationException">The <see cref="T:System.Xml.XmlReader" /> is not positioned on a recognized node type.</exception>
27102711
</Docs>
27112712
</Member>
27122713
<Member MemberName="Remove">
@@ -3397,10 +3398,10 @@ Console.WriteLine(sb.ToString())
33973398
<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" />
33983399
</Parameters>
33993400
<Docs>
3400-
<param name="writer">To be added.</param>
3401-
<param name="cancellationToken">To be added.</param>
3402-
<summary>To be added.</summary>
3403-
<returns>To be added.</returns>
3401+
<param name="writer">The writer to write the current node into.</param>
3402+
<param name="cancellationToken">A token that can be used to request cancellation of the asynchronous operation.</param>
3403+
<summary>Writes the current node to an <see cref="T:System.Xml.XmlWriter" />.</summary>
3404+
<returns>A task representing the asynchronous write operation.</returns>
34043405
<remarks>To be added.</remarks>
34053406
</Docs>
34063407
</Member>

xml/System.Xml.Linq/XProcessingInstruction.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,10 @@ xml-stylesheet
443443
<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" />
444444
</Parameters>
445445
<Docs>
446-
<param name="writer">To be added.</param>
447-
<param name="cancellationToken">To be added.</param>
448-
<summary>To be added.</summary>
449-
<returns>To be added.</returns>
446+
<param name="writer">The writer to write this <see cref="T:System.Xml.Linq.XProcessingInstruction" /> to.</param>
447+
<param name="cancellationToken">A token that can be used to request cancellation of the asynchronous operation.</param>
448+
<summary>Writes this <see cref="T:System.Xml.Linq.XProcessingInstruction" /> to the specified <see cref="T:System.Xml.XmlWriter" />.</summary>
449+
<returns>A task representing the asynchronous write operation.</returns>
450450
<remarks>To be added.</remarks>
451451
</Docs>
452452
</Member>

xml/System.Xml.Linq/XText.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ Newer text
434434
<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" />
435435
</Parameters>
436436
<Docs>
437-
<param name="writer">To be added.</param>
438-
<param name="cancellationToken">To be added.</param>
439-
<summary>To be added.</summary>
440-
<returns>To be added.</returns>
437+
<param name="writer">The writer to write this <see cref="T:System.Xml.Linq.XText" /> to.</param>
438+
<param name="cancellationToken">A token that can be used to request cancellation of the asynchronous operation.</param>
439+
<summary>Asynchronously writes this <see cref="T:System.Xml.Linq.XText" /> to the specified <see cref="T:System.Xml.XmlWriter" />.</summary>
440+
<returns>A task representing the asynchronous write operation.</returns>
441441
<remarks>To be added.</remarks>
442442
</Docs>
443443
</Member>

0 commit comments

Comments
 (0)