-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
⌚ Not TriagedNot triagedNot triageddotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.
Description
Type of issue
Other (describe below)
Description
[Enter feedback here]
Hi, I'm trying to fix the CA2208 error in my project. But in the official documentation, I found that the fixes are totally different in the tip and the example.
In the How to fix violations tip, the parameter name is placed to the 2nd paramenter:

But in the Example Session, the name is placed to the 1st parameter:

From the ArgumentException Constructor (System) | Microsoft Learn the parameter should be in the 2nd parameter.
Page URL
Content source URL
https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/quality-rules/ca2208.md
Document Version Independent Id
cc2b5015-89a9-02ff-a585-fca3449dfa9a
Article author
Metadata
- ID: ff82be90-2d17-5880-4edd-a89b18a3ae2b
- Service: dotnet-fundamentals
Metadata
Metadata
Assignees
Labels
⌚ Not TriagedNot triagedNot triageddotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.