forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debugger display to CancellationTokenSource
Fixes dotnet#105698 Add `DebuggerDisplayAttribute` to `CancellationTokenSource` to show cancellation and disposal status. - **CancellationTokenSource.cs** - Add `DebuggerDisplayAttribute` to the `CancellationTokenSource` class. - Display the cancellation status in the `DebuggerDisplayAttribute`. - Display the disposal status in the `DebuggerDisplayAttribute`. - **DebuggerAttributes.cs** - Add a test method to validate the `DebuggerDisplayAttribute` for `CancellationTokenSource`. - Ensure the test method checks the cancellation status. - Ensure the test method checks the disposal status.
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters