Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
adegeo committed Nov 12, 2024
1 parent 3ac97b2 commit 5f59d71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet-desktop-guide/net/winforms/whats-new/net90.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following a list of new methods added to support asynchronous scenarios:
- <xref:System.Windows.Forms.TaskDialog.ShowDialogAsync*?displayProperty=nameWithType>
- <xref:System.Windows.Forms.Control.InvokeAsync*?displayProperty=nameWithType>

This API is guarded behind a compiler error because it's experimental. Suppress the error to enable access to the API. Add the following `PropertyGroup` to your project file:
This API is guarded behind a compiler error because it's experimental. To suppress the error and enable access to the API, add the following `PropertyGroup` to your project file:

:::code language="xml" source=".\snippets\net90\csharp\MyExampleProject.csproj" id="experimental_async":::

Expand Down Expand Up @@ -59,7 +59,7 @@ To apply a color mode, call <xref:System.Windows.Forms.Application.SetColorMode(
:::code language="csharp" source=".\snippets\net90\csharp\Program.cs" highlight="14":::
:::code language="vb" source=".\snippets\net90\vb\Program.vb" highlight="8":::

This API is guarded behind a compiler error because it's experimental. Suppress the error to enable access to the API. Add the following `PropertyGroup` to your project file:
This API is guarded behind a compiler error because it's experimental. To suppress the error and enable access to the API, add the following `PropertyGroup` to your project file:

:::code language="xml" source=".\snippets\net90\csharp\MyExampleProject.csproj" id="experimental_darkmode":::

Expand Down

0 comments on commit 5f59d71

Please sign in to comment.