Skip to content

Update AV1553: Only use optional parameters to replace overloads#366

Open
dennisdoomen wants to merge 1 commit intodevelopfrom
copilot/pr298-update-av1553
Open

Update AV1553: Only use optional parameters to replace overloads#366
dennisdoomen wants to merge 1 commit intodevelopfrom
copilot/pr298-update-av1553

Conversation

@dennisdoomen
Copy link
Copy Markdown
Owner

This PR updates guideline AV1553.

It was split out of #298 so the change can be reviewed independently.

Files:

  • _rules/1553.md

Part of the replacement for #298.

Split from #298.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
severity: 1
---
The only valid reason for using C# 4.0's optional parameters is to replace the example from rule [{{ site.default_rule_prefix }}1551](#{{ site.default_rule_prefix }}1551) with a single method like:
The only valid reason for using optional parameters is to replace the example from rule [{{ site.default_rule_prefix }}1551](#{{ site.default_rule_prefix }}1551) with a single method like:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This refers to rule 1551, which is being deleted in #335. I'm unclear on the intended new guidance for optional parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants