Skip to content

Commit df26907

Browse files
authored
Delete unnecessary spaces
1 parent 29cc80d commit df26907

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

docs/debugger/format-specifiers-in-csharp.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
title: "Format specifiers in the debugger (C#) | Microsoft Docs"
33
ms.date: "11/21/2018"
44
ms.topic: "conceptual"
5-
dev_langs:
5+
dev_langs:
66
- "CSharp"
77
- "VB"
88
- "FSharp"
99
- "C++"
10-
helpviewer_keywords:
10+
helpviewer_keywords:
1111
- "expressions [C#], formatting values"
1212
- "variables [debugger], watch variable symbols"
1313
- "symbols, watch variable formatting"
@@ -23,44 +23,44 @@ ms.assetid: 345c8589-5f36-4d34-a58c-e56271687dd6
2323
author: "mikejo5000"
2424
ms.author: "mikejo"
2525
manager: jillfra
26-
ms.workload:
26+
ms.workload:
2727
- "dotnet"
2828
---
2929
# Format specifiers in C# in the Visual Studio debugger
30-
You can change the format in which a value is displayed in the **Watch** window by using format specifiers. You can also use format specifiers in the **Immediate** window, the **Command** window, in [tracepoints](../debugger/using-breakpoints.md#BKMK_Print_to_the_Output_window_with_tracepoints), and in source windows. If you pause on an expression in those windows, the result will appear in a [DataTip](../debugger/view-data-values-in-data-tips-in-the-code-editor.md) in the specified format display.
31-
32-
To use a format specifier, enter the variable expression followed by a comma and the appropriate specifier.
33-
34-
## Set format specifiers
35-
We'll use the following example code:
36-
37-
```csharp
38-
{
39-
int my_var1 = 0x0065;
40-
int my_var2 = 0x0066;
41-
int my_var3 = 0x0067;
42-
}
43-
```
44-
45-
Add the `my_var1` variable to the **Watch** window while debugging, **Debug** > **Windows** > **Watch** > **Watch 1**. Next, right-click the variable and select **Hexadecimal Display**. Now the **Watch** window shows the value 0x0065. To see this value as a decimal integer rather than a hexadecimal integer, add the decimal format specifier **, d** in the **Name** column after the variable name. The **Value** column now shows **101**.
46-
47-
![WatchFormatCSharp](../debugger/media/watchformatcsharp.png "WatchFormatCSharp")
48-
49-
## Format specifiers
50-
The following table describes the C# format specifiers for the Visual Studio debugger.
51-
52-
|Specifier|Format|Original Watch Value|Displays|
53-
|---------------|------------|--------------------------|--------------|
54-
|ac|Force evaluation of an expression, which can be useful when implicit evaluation of properties and implicit function calls is turned off.|Message "Implicit function evaluation is turned off by the user"|\<value>|
55-
|d|decimal integer|0x0065|101|
56-
|dynamic|Displays the specified object using a Dynamic View|Displays all the members of the object, including the Dynamic View|Displays only the Dynamic View|
57-
|h|hexadecimal integer|61541|0x0000F065|
58-
|nq|string with no quotes|"My String"|My String|
30+
You can change the format in which a value is displayed in the **Watch** window by using format specifiers. You can also use format specifiers in the **Immediate** window, the **Command** window, in [tracepoints](../debugger/using-breakpoints.md#BKMK_Print_to_the_Output_window_with_tracepoints), and in source windows. If you pause on an expression in those windows, the result will appear in a [DataTip](../debugger/view-data-values-in-data-tips-in-the-code-editor.md) in the specified format display.
31+
32+
To use a format specifier, enter the variable expression followed by a comma and the appropriate specifier.
33+
34+
## Set format specifiers
35+
We'll use the following example code:
36+
37+
```csharp
38+
{
39+
int my_var1 = 0x0065;
40+
int my_var2 = 0x0066;
41+
int my_var3 = 0x0067;
42+
}
43+
```
44+
45+
Add the `my_var1` variable to the **Watch** window while debugging, **Debug** > **Windows** > **Watch** > **Watch 1**. Next, right-click the variable and select **Hexadecimal Display**. Now the **Watch** window shows the value 0x0065. To see this value as a decimal integer rather than a hexadecimal integer, add the decimal format specifier **, d** in the **Name** column after the variable name. The **Value** column now shows **101**.
46+
47+
![WatchFormatCSharp](../debugger/media/watchformatcsharp.png "WatchFormatCSharp")
48+
49+
## Format specifiers
50+
The following table describes the C# format specifiers for the Visual Studio debugger.
51+
52+
|Specifier|Format|Original Watch Value|Displays|
53+
|---------------|------------|--------------------------|--------------|
54+
|ac|Force evaluation of an expression, which can be useful when implicit evaluation of properties and implicit function calls is turned off.|Message "Implicit function evaluation is turned off by the user"|\<value>|
55+
|d|decimal integer|0x0065|101|
56+
|dynamic|Displays the specified object using a Dynamic View|Displays all the members of the object, including the Dynamic View|Displays only the Dynamic View|
57+
|h|hexadecimal integer|61541|0x0000F065|
58+
|nq|string with no quotes|"My String"|My String|
5959
|nse|Specifies behavior, not format. Evaluates the expression with "No side effects". If the expression can’t be interpreted and can only be resolved by an evaluation (such as a function call), you will see an error instead.|N/A|N/A|
60-
|hidden|Displays all public and non-public members|Displays public members|Displays all members|
61-
|raw|Displays item as it appears in the raw item node. Valid on proxy objects only.|Dictionary\<T>|Raw view of Dictionary\<T>|
62-
|results|Used with a variable of a type that implements IEnumerable or IEnumerable\<T>, usually the result of a query expression. Displays only the members that contain the query result.|Displays all the members|Displays the members the meet the conditions of the query|
63-
64-
## See also
65-
[Watch and QuickWatch windows](../debugger/watch-and-quickwatch-windows.md)
66-
[Autos and Locals windows](../debugger/autos-and-locals-windows.md)
60+
|hidden|Displays all public and non-public members|Displays public members|Displays all members|
61+
|raw|Displays item as it appears in the raw item node. Valid on proxy objects only.|Dictionary\<T>|Raw view of Dictionary\<T>|
62+
|results|Used with a variable of a type that implements IEnumerable or IEnumerable\<T>, usually the result of a query expression. Displays only the members that contain the query result.|Displays all the members|Displays the members the meet the conditions of the query|
63+
64+
## See also
65+
[Watch and QuickWatch windows](../debugger/watch-and-quickwatch-windows.md)
66+
[Autos and Locals windows](../debugger/autos-and-locals-windows.md)

0 commit comments

Comments
 (0)