Skip to content

Commit 4c6279f

Browse files
authored
Fix BitConverter.ToString overload docs (#8771)
1 parent 5d696e2 commit 4c6279f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

xml/System/BitConverter.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
:::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR_System/system.BitConverter.Class/FS/example1.fs" id="Snippet3":::
7777
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.Class/VB/example1.vb" id="Snippet3":::
7878
79-
The order of bytes in the array returned by the <xref:System.BitConverter.GetBytes%2A> method overloads (as well as the order of bits in the integer returned by the <xref:System.BitConverter.DoubleToInt64Bits%2A> method and the order of hexadecimal strings returned by the <xref:System.BitConverter.ToString%28System.Byte%5B%5D%29> method) depends on whether the computer architecture is little-endian or big-endian. Similarly, the order of bytes in the array and returned by the `To`*IntegerValue* methods and the <xref:System.BitConverter.ToChar%2A> method depends on whether the computer architecture is little-endian or big-endian. The endianness of an architecture is indicated by the <xref:System.BitConverter.IsLittleEndian> property, which returns `true` on little-endian systems and `false` on big-endian systems. On little-endian systems, lower-order bytes precede higher-order bytes. On big-endian system, higher-order bytes precede lower-order bytes. The following table illustrates the difference in the byte arrays that result from passing the integer 1,234,567,890 (0x499602D2) to the <xref:System.BitConverter.GetBytes%28System.Int32%29> method. The bytes are listed in order from the byte at index 0 to the byte at index 3.
79+
The order of bytes in the array returned by the <xref:System.BitConverter.GetBytes%2A> method overloads (as well as the order of bits in the integer returned by the <xref:System.BitConverter.DoubleToInt64Bits%2A> method) depends on whether the computer architecture is little-endian or big-endian. Similarly, the order of bytes in the array and returned by the `To`*IntegerValue* methods and the <xref:System.BitConverter.ToChar%2A> method depends on whether the computer architecture is little-endian or big-endian. The endianness of an architecture is indicated by the <xref:System.BitConverter.IsLittleEndian> property, which returns `true` on little-endian systems and `false` on big-endian systems. On little-endian systems, lower-order bytes precede higher-order bytes. On big-endian system, higher-order bytes precede lower-order bytes. The following table illustrates the difference in the byte arrays that result from passing the integer 1,234,567,890 (0x499602D2) to the <xref:System.BitConverter.GetBytes%28System.Int32%29> method. The bytes are listed in order from the byte at index 0 to the byte at index 3.
8080
8181
|||
8282
|-|-|
@@ -2269,7 +2269,7 @@
22692269
<format type="text/markdown"><![CDATA[
22702270
22712271
## Remarks
2272-
All the elements of `value` are converted. The order of hexadecimal strings returned by the <xref:System.BitConverter.ToString%2A> method depends on whether the computer architecture is little-endian or big-endian.
2272+
All the elements of `value` are converted.
22732273
22742274
## Examples
22752275
The following code example converts <xref:System.Byte> arrays to <xref:System.String> objects with the `ToString` method.
@@ -2336,7 +2336,7 @@
23362336
<format type="text/markdown"><![CDATA[
23372337
23382338
## Remarks
2339-
The elements from array position `startIndex` to the end of the array are converted. The order of hexadecimal strings returned by the <xref:System.BitConverter.ToString%2A> method depends on whether the computer architecture is little-endian or big-endian.
2339+
The elements from array position `startIndex` to the end of the array are converted.
23402340
23412341
## Examples
23422342
The following code example converts the part of a <xref:System.Byte> array starting at the specified `startIndex` to a <xref:System.String> with the `ToString` method.
@@ -2407,9 +2407,7 @@
24072407
<format type="text/markdown"><![CDATA[
24082408
24092409
## Remarks
2410-
The `length` elements from array position `startIndex` are converted. If `length` equals zero, the method returns <xref:System.String.Empty?displayProperty=nameWithType>.
2411-
2412-
The order of hexadecimal strings returned by the <xref:System.BitConverter.ToString%2A> method depends on whether the computer architecture is little-endian or big-endian.
2410+
The `length` elements from array position `startIndex` are converted. If `length` equals zero, the method returns <xref:System.String.Empty?displayProperty=nameWithType>.
24132411
24142412
## Examples
24152413
The following example uses the <xref:System.BitConverter.ToString%2A> method to convert part of a byte array, starting at the specified `startIndex` and with the specified `length`, to a string.

0 commit comments

Comments
 (0)