|
76 | 76 | :::code language="fsharp" source="~/snippets/fsharp/VS_Snippets_CLR_System/system.BitConverter.Class/FS/example1.fs" id="Snippet3":::
|
77 | 77 | :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.Class/VB/example1.vb" id="Snippet3":::
|
78 | 78 |
|
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. |
80 | 80 |
|
81 | 81 | |||
|
82 | 82 | |-|-|
|
|
2269 | 2269 | <format type="text/markdown"><![CDATA[
|
2270 | 2270 |
|
2271 | 2271 | ## 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. |
2273 | 2273 |
|
2274 | 2274 | ## Examples
|
2275 | 2275 | The following code example converts <xref:System.Byte> arrays to <xref:System.String> objects with the `ToString` method.
|
|
2336 | 2336 | <format type="text/markdown"><![CDATA[
|
2337 | 2337 |
|
2338 | 2338 | ## 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. |
2340 | 2340 |
|
2341 | 2341 | ## Examples
|
2342 | 2342 | 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 | 2407 | <format type="text/markdown"><![CDATA[
|
2408 | 2408 |
|
2409 | 2409 | ## 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>. |
2413 | 2411 |
|
2414 | 2412 | ## Examples
|
2415 | 2413 | 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