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
@@ -8315,7 +8315,7 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8315
8315
8316
8316
-or-
8317
8317
8318
-
<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>
8318
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.</returns>
8319
8319
<remarks>To be added.</remarks>
8320
8320
<exception cref="T:System.ArgumentNullException">
8321
8321
<paramref name="value" /> is <see langword="null" />.</exception>
@@ -8366,7 +8366,7 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8366
8366
8367
8367
-or-
8368
8368
8369
-
<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>
8369
+
<see cref="F:System.String.Empty" /> if <paramref name="value" /> has zero elements.</returns>
8370
8370
<remarks>To be added.</remarks>
8371
8371
<exception cref="T:System.ArgumentNullException">
8372
8372
<paramref name="value" /> is <see langword="null" />.</exception>
@@ -8420,11 +8420,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8420
8420
<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>
8421
8421
<param name="values">A collection that contains the strings to concatenate.</param>
8422
8422
<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>
8423
-
<returns>A string that consists of the members of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8423
+
<returns>A string that consists of the elements of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8424
8424
8425
8425
-or-
8426
8426
8427
-
<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>
8427
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.</returns>
8428
8428
<remarks>
8429
8429
<format type="text/markdown"><![CDATA[
8430
8430
@@ -8504,7 +8504,15 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8504
8504
<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>
8505
8505
<param name="values">An array that contains the elements to concatenate.</param>
8506
8506
<summary>Concatenates the elements of an object array, using the specified separator between each element.</summary>
8507
-
<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>
8507
+
<returns>A string that consists of the elements of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8508
+
8509
+
-or-
8510
+
8511
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.
8512
+
8513
+
-or-
8514
+
8515
+
.NET Framework only: <see cref="F:System.String.Empty" /> if the first element of <paramref name="values" /> is <see langword="null" />.</returns>
8508
8516
<remarks>
8509
8517
<format type="text/markdown"><![CDATA[
8510
8518
@@ -8525,7 +8533,7 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8525
8533
<paramref name="values" /> is <see langword="null" />.</exception>
8526
8534
<exception cref="T:System.OutOfMemoryException">The length of the resulting string overflows the maximum allowed length (<see cref="F:System.Int32.MaxValue" />).</exception>
8527
8535
<block subset="none" type="usage">
8528
-
<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.
8536
+
<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.
@@ -8586,7 +8594,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8586
8594
<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>
8587
8595
<param name="value">An array that contains the elements to concatenate.</param>
8588
8596
<summary>Concatenates all the elements of a string array, using the specified separator between each element.</summary>
8589
-
<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>
8597
+
<returns>A string that consists of the elements in <paramref name="value" /> delimited by the <paramref name="separator" /> string.
8598
+
8599
+
-or-
8600
+
8601
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has zero elements.</returns>
8590
8602
<remarks>
8591
8603
<format type="text/markdown"><![CDATA[
8592
8604
@@ -8648,11 +8660,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8648
8660
<param name="startIndex">The first item in <paramref name="value" /> to concatenate.</param>
8649
8661
<param name="count">The number of elements from <paramref name="value" /> to concatenate, starting with the element in the <paramref name="startIndex" /> position.</param>
8650
8662
<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>
8651
-
<returns>A string that consists of the elements of <paramref name="value" /> delimited by the <paramref name="separator" /> character.
8663
+
<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.
8652
8664
8653
8665
-or-
8654
8666
8655
-
<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>
8667
+
<see cref="F:System.String.Empty" /> if <paramref name="count" /> is zero.</returns>
8656
8668
<remarks>To be added.</remarks>
8657
8669
<exception cref="T:System.ArgumentNullException">
8658
8670
<paramref name="value" /> is <see langword="null" />.</exception>
@@ -8718,11 +8730,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8718
8730
<param name="startIndex">The first element in <paramref name="value" /> to use.</param>
8719
8731
<param name="count">The number of elements of <paramref name="value" /> to use.</param>
8720
8732
<summary>Concatenates the specified elements of a string array, using the specified separator between each element.</summary>
8721
-
<returns>A string that consists of the strings in <paramref name="value" /> delimited by the <paramref name="separator" /> string.
8733
+
<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.
8722
8734
8723
8735
-or-
8724
8736
8725
-
<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>
8737
+
<see cref="F:System.String.Empty" /> if <paramref name="count" /> is zero.</returns>
8726
8738
<remarks>
8727
8739
<format type="text/markdown"><![CDATA[
8728
8740
@@ -8789,7 +8801,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8789
8801
<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>
8790
8802
<param name="values">A collection that contains the objects to concatenate.</param>
8791
8803
<summary>Concatenates the members of a collection, using the specified separator between each member.</summary>
8792
-
<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>
8804
+
<returns>A string that consists of the members of <paramref name="values" /> delimited by the <paramref name="separator" /> character.
8805
+
8806
+
-or-
8807
+
8808
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has no elements.</returns>
8793
8809
<remarks>To be added.</remarks>
8794
8810
<exception cref="T:System.ArgumentNullException">
8795
8811
<paramref name="values" /> is <see langword="null" />.</exception>
@@ -8847,7 +8863,11 @@ A string is empty if it is explicitly assigned an empty string ("") or <xref:Sy
8847
8863
<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>
8848
8864
<param name="values">A collection that contains the objects to concatenate.</param>
8849
8865
<summary>Concatenates the members of a collection, using the specified separator between each member.</summary>
8850
-
<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>
8866
+
<returns>A string that consists of the elements of <paramref name="values" /> delimited by the <paramref name="separator" /> string.
8867
+
8868
+
-or-
8869
+
8870
+
<see cref="F:System.String.Empty" /> if <paramref name="values" /> has no elements.</returns>
0 commit comments