You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/String.xml
+33-13Lines changed: 33 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -8373,7 +8373,7 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8373
8373
8374
8374
-or-
8375
8375
8376
-
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements or all the elements of <paramref name="values" /> are <see langword="null" />.</returns>
8376
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.</returns>
8377
8377
<remarks>To be added.</remarks>
8378
8378
<exception cref="T:System.ArgumentNullException">
8379
8379
<paramref name="value" /> is <see langword="null" />.</exception>
@@ -8424,7 +8424,7 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8424
8424
8425
8425
-or-
8426
8426
8427
-
<see cref="F:System.String.Empty" /> if <paramref name="value" /> has zero elements or all the elements of <paramref name="value" /> are <see langword="null" />.</returns>
8427
+
<see cref="F:System.String.Empty" /> if <paramref name="value" /> has zero elements.</returns>
8428
8428
<remarks>To be added.</remarks>
8429
8429
<exception cref="T:System.ArgumentNullException">
8430
8430
<paramref name="value" /> is <see langword="null" />.</exception>
@@ -8478,11 +8478,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8478
8478
<param name="separator">The string to use as a separator.<paramref name="separator" /> is included in the returned string only if <paramref name="values" /> has more than one element.</param>
8479
8479
<param name="values">A collection that contains the strings to concatenate.</param>
8480
8480
<summary>Concatenates the members of a constructed <see cref="T:System.Collections.Generic.IEnumerable`1" /> collection of type <see cref="T:System.String" />, using the specified separator between each member.</summary>
8481
-
<returns>A string that consists of the members of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8481
+
<returns>A string that consists of the elements of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8482
8482
8483
8483
-or-
8484
8484
8485
-
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements or all the elements of <paramref name="values" /> are <see langword="null" />.</returns>
8485
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.</returns>
8486
8486
<remarks>
8487
8487
<format type="text/markdown"><![CDATA[
8488
8488
@@ -8562,7 +8562,15 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8562
8562
<param name="separator">The string to use as a separator. <paramref name="separator" /> is included in the returned string only if <paramref name="values" /> has more than one element.</param>
8563
8563
<param name="values">An array that contains the elements to concatenate.</param>
8564
8564
<summary>Concatenates the elements of an object array, using the specified separator between each element.</summary>
8565
-
<returns>A string that consists of the elements of <paramref name="values" /> delimited by the <paramref name="separator" /> string. If <paramref name="values" /> is an empty array, the method returns <see cref="F:System.String.Empty" />.</returns>
8565
+
<returns>A string that consists of the elements of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8566
+
8567
+
-or-
8568
+
8569
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.
8570
+
8571
+
-or-
8572
+
8573
+
.NET Framework only: <see cref="F:System.String.Empty" /> if the first element of <paramref name="values" /> is <see langword="null" />.</returns>
8566
8574
<remarks>
8567
8575
<format type="text/markdown"><![CDATA[
8568
8576
@@ -8585,7 +8593,7 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8585
8593
<paramref name="values" /> is <see langword="null" />.</exception>
8586
8594
<exception cref="T:System.OutOfMemoryException">The length of the resulting string overflows the maximum allowed length (<see cref="F:System.Int32.MaxValue" />).</exception>
8587
8595
<block subset="none" type="usage">
8588
-
<para>If the first element of <paramref name="values" /> is <see langword="null" />, the <see cref="M:System.String.Join(System.String,System.Object[])" /> method does not concatenate the elements in <paramref name="values" /> but instead returns <see cref="F:System.String.Empty" />. A number of workarounds for this issue are available. The easiest is to assign a value of <see cref="F:System.String.Empty" /> to the first element of the array, as the following example shows.
8596
+
<para>.NET Framework only: If the first element of <paramref name="values" /> is <see langword="null" />, the <see cref="M:System.String.Join(System.String,System.Object[])" /> method does not concatenate the elements in <paramref name="values" /> but instead returns <see cref="F:System.String.Empty" />. A number of workarounds for this issue are available. The easiest is to assign a value of <see cref="F:System.String.Empty" /> to the first element of the array, as the following example shows.
@@ -8646,7 +8654,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8646
8654
<param name="separator">The string to use as a separator. <paramref name="separator" /> is included in the returned string only if <paramref name="value" /> has more than one element.</param>
8647
8655
<param name="value">An array that contains the elements to concatenate.</param>
8648
8656
<summary>Concatenates all the elements of a string array, using the specified separator between each element.</summary>
8649
-
<returns>A string that consists of the elements in <paramref name="value" /> delimited by the <paramref name="separator" /> string. If <paramref name="value" /> is an empty array, the method returns <see cref="F:System.String.Empty" />.</returns>
8657
+
<returns>A string that consists of the elements in <paramref name="value" /> delimited by the <paramref name="separator" /> string.
8658
+
8659
+
-or-
8660
+
8661
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.</returns>
8650
8662
<remarks>
8651
8663
<format type="text/markdown"><![CDATA[
8652
8664
@@ -8710,11 +8722,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8710
8722
<param name="startIndex">The first item in <paramref name="value" /> to concatenate.</param>
8711
8723
<param name="count">The number of elements from <paramref name="value" /> to concatenate, starting with the element in the <paramref name="startIndex" /> position.</param>
8712
8724
<summary>Concatenates an array of strings, using the specified separator between each member, starting with the element in <paramref name="value" /> located at the <paramref name="startIndex" /> position, and concatenating up to <paramref name="count" /> elements.</summary>
8713
-
<returns>A string that consists of the elements of <paramref name="value" /> delimited by the <paramref name="separator" /> character.
8725
+
<returns>A string that consists of <paramref name="count" /> elements of <paramref name="value" /> starting at <paramref name="startIndex" /> delimited by the <paramref name="separator" /> character.
8714
8726
8715
8727
-or-
8716
8728
8717
-
<see cref="F:System.String.Empty" /> if <paramref name="count" /> is zero, <paramref name="value" /> has no elements, or all the elements of <paramref name="value" /> are <see langword="null" /> or <see cref="F:System.String.Empty" />.</returns>
8729
+
<see cref="F:System.String.Empty" /> if <paramref name="count" /> is zero.</returns>
8718
8730
<remarks>To be added.</remarks>
8719
8731
<exception cref="T:System.ArgumentNullException">
8720
8732
<paramref name="value" /> is <see langword="null" />.</exception>
@@ -8780,11 +8792,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8780
8792
<param name="startIndex">The first element in <paramref name="value" /> to use.</param>
8781
8793
<param name="count">The number of elements of <paramref name="value" /> to use.</param>
8782
8794
<summary>Concatenates the specified elements of a string array, using the specified separator between each element.</summary>
8783
-
<returns>A string that consists of the strings in <paramref name="value" /> delimited by the <paramref name="separator" /> string.
8795
+
<returns>A string that consists of <paramref name="count" /> elements of <paramref name="value" /> starting at <paramref name="startIndex" /> delimited by the <paramref name="separator" /> character.
8784
8796
8785
8797
-or-
8786
8798
8787
-
<see cref="F:System.String.Empty" /> if <paramref name="count" /> is zero, <paramref name="value" /> has no elements, or <paramref name="separator" /> and all the elements of <paramref name="value" /> are <see cref="F:System.String.Empty" />.</returns>
8799
+
<see cref="F:System.String.Empty" /> if <paramref name="count" /> is zero.</returns>
8788
8800
<remarks>
8789
8801
<format type="text/markdown"><![CDATA[
8790
8802
@@ -8853,7 +8865,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8853
8865
<param name="separator">The character to use as a separator. <paramref name="separator" /> is included in the returned string only if <paramref name="values" /> has more than one element.</param>
8854
8866
<param name="values">A collection that contains the objects to concatenate.</param>
8855
8867
<summary>Concatenates the members of a collection, using the specified separator between each member.</summary>
8856
-
<returns>A string that consists of the members of <paramref name="values" /> delimited by the <paramref name="separator" /> character. If <paramref name="values" /> has no members, the method returns <see cref="F:System.String.Empty" />.</returns>
8868
+
<returns>A string that consists of the members of <paramref name="values" /> delimited by the <paramref name="separator" /> character.
8869
+
8870
+
-or-
8871
+
8872
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has no elements.</returns>
8857
8873
<remarks>To be added.</remarks>
8858
8874
<exception cref="T:System.ArgumentNullException">
8859
8875
<paramref name="values" /> is <see langword="null" />.</exception>
@@ -8911,7 +8927,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8911
8927
<param name="separator">The string to use as a separator. <paramref name="separator" /> is included in the returned string only if <paramref name="values" /> has more than one element.</param>
8912
8928
<param name="values">A collection that contains the objects to concatenate.</param>
8913
8929
<summary>Concatenates the members of a collection, using the specified separator between each member.</summary>
8914
-
<returns>A string that consists of the members of <paramref name="values" /> delimited by the <paramref name="separator" /> string. If <paramref name="values" /> has no members, the method returns <see cref="F:System.String.Empty" />.</returns>
8930
+
<returns>A string that consists of the elements of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8931
+
8932
+
-or-
8933
+
8934
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has no elements.</returns>
0 commit comments