Skip to content

Commit db9938f

Browse files
author
Ron Petrusha
authored
Updated StringBuilder.Clear (#2042)
1 parent 1db3e6a commit db9938f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

xml/System.Text/StringBuilder.xml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3553,17 +3553,15 @@
35533553
<format type="text/markdown"><![CDATA[
35543554
35553555
## Remarks
3556-
<xref:System.Text.StringBuilder.Clear%2A> is a convenience method that is equivalent to setting the <xref:System.Text.StringBuilder.Length%2A> property of the current instance to 0 (zero).
3557-
3558-
Calling the <xref:System.Text.StringBuilder.Clear%2A> method does not modify the current instance's <xref:System.Text.StringBuilder.Capacity%2A> or <xref:System.Text.StringBuilder.MaxCapacity%2A> property.
3559-
3560-
3556+
3557+
<xref:System.Text.StringBuilder.Clear%2A> is a convenience method that is equivalent to setting the <xref:System.Text.StringBuilder.Length%2A> property of the current instance to 0 (zero).
35613558
3562-
## Examples
3563-
The following example instantiates a <xref:System.Text.StringBuilder> object with a string, calls the <xref:System.Text.StringBuilder.Clear%2A> method, and then appends a new string.
3559+
## Examples
3560+
3561+
The following example instantiates a <xref:System.Text.StringBuilder> object with a string, calls the <xref:System.Text.StringBuilder.Clear%2A> method, and then appends a new string.
35643562
3565-
[!code-csharp[System.Text.StringBuilder.Clear#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.text.stringbuilder.clear/cs/clear1.cs#1)]
3566-
[!code-vb[System.Text.StringBuilder.Clear#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.text.stringbuilder.clear/vb/clear1.vb#1)]
3563+
[!code-csharp[System.Text.StringBuilder.Clear#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.text.stringbuilder.clear/cs/clear1.cs#1)]
3564+
[!code-vb[System.Text.StringBuilder.Clear#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.text.stringbuilder.clear/vb/clear1.vb#1)]
35673565
35683566
]]></format>
35693567
</remarks>

0 commit comments

Comments
 (0)