|
161 | 161 | ## Examples
|
162 | 162 | The following code example converts the bit patterns of several <xref:System.Double> values to <xref:System.Int64> values with the `DoubleToInt64Bits` method.
|
163 | 163 |
|
164 |
| - [!code-cpp[System.BitConverter.DoubleInt64#2](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.DoubleInt64/CPP/dbltobits.cpp#2)] |
165 |
| - [!code-csharp[System.BitConverter.DoubleInt64#2](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.DoubleInt64/CS/dbltobits.cs#2)] |
166 |
| - [!code-vb[System.BitConverter.DoubleInt64#2](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.DoubleInt64/VB/dbltobits.vb#2)] |
167 |
| - |
| 164 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.DoubleInt64/CPP/dbltobits.cpp" id="Snippet2"::: |
| 165 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.DoubleInt64/CS/dbltobits.cs" interactive="try-dotnet" id="Snippet2"::: |
| 166 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.DoubleInt64/VB/dbltobits.vb" id="Snippet2"::: |
| 167 | +
|
168 | 168 | ]]></format>
|
169 | 169 | </remarks>
|
170 | 170 | <altmember cref="M:System.BitConverter.Int64BitsToDouble(System.Int64)" />
|
|
1611 | 1611 |
|
1612 | 1612 | ## Examples
|
1613 | 1613 | The following example uses the <xref:System.BitConverter.ToInt32%2A> method to create <xref:System.Int32> values from a four-byte array and from the upper four bytes of an eight-byte array. It also uses the <xref:System.BitConverter.GetBytes%28System.Int32%29> and <xref:System.BitConverter.ToInt32%2A> methods to round-trip an <xref:System.Int32> value.
|
1614 |
| - |
1615 |
| - [!code-csharp[System.BitConverter.ToInt32#1](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.bitconverter.toint32/cs/toint32.cs#1)] |
1616 |
| - [!code-vb[System.BitConverter.ToInt32#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.bitconverter.toint32/vb/toint32.vb#1)] |
1617 |
| - |
| 1614 | + |
| 1615 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.bitconverter.toint32/cs/toint32.cs" interactive="try-dotnet" id="Snippet1"::: |
| 1616 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.bitconverter.toint32/vb/toint32.vb" id="Snippet1"::: |
| 1617 | +
|
1618 | 1618 | ]]></format>
|
1619 | 1619 | </remarks>
|
1620 | 1620 | <exception cref="T:System.ArgumentException">
|
|
2424 | 2424 | ## Examples
|
2425 | 2425 | The following code example converts elements of <xref:System.Byte> arrays to <xref:System.UInt64> values with the `ToUInt64` method.
|
2426 | 2426 |
|
2427 |
| - [!code-cpp[System.BitConverter.ToXXX.UInts#3](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.UInts/CPP/batouint64.cpp#3)] |
2428 |
| - [!code-csharp[System.BitConverter.ToXXX.UInts#3](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.UInts/CS/batouint64.cs#3)] |
2429 |
| - [!code-vb[System.BitConverter.ToXXX.UInts#3](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.ToXXX.UInts/VB/batouint64.vb#3)] |
2430 |
| - |
| 2427 | + :::code language="cpp" source="~/samples/snippets/cpp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.UInts/CPP/batouint64.cpp" id="Snippet3"::: |
| 2428 | + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.BitConverter.ToXXX.UInts/CS/batouint64.cs" interactive="try-dotnet" id="Snippet3"::: |
| 2429 | + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.BitConverter.ToXXX.UInts/VB/batouint64.vb" id="Snippet3"::: |
| 2430 | +
|
2431 | 2431 | ]]></format>
|
2432 | 2432 | </remarks>
|
2433 | 2433 | <exception cref="T:System.ArgumentException">
|
|
0 commit comments