Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Tip section in CA2208 page #44490

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/fundamentals/code-analysis/quality-rules/ca2208.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ To fix a violation of this rule, call a constructor that takes a message, a para
> A code fix is available in Visual Studio for incorrectly positioned parameter names. To use it, position the cursor on the warning row and press <kbd>Ctrl</kbd>+<kbd>.</kbd> (period). Choose **Swap the arguments order** from the list of options that's presented.
>
> ![Code fix for CA2208 - swap arguments.](media/ca2208-codefix_swap.png)
>
> If a parameter name instead of a message is passed to the <xref:System.ArgumentException.%23ctor(System.String)> method, the fixer provides the option to switch to the two-argument constructor instead.
>
> ![Code fix for CA2208 - switch to two-argument constructor.](media/ca2208-codefix_null_msg.png)

## When to suppress warnings

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading