Skip to content

Conversation

@michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Jan 18, 2022

When defining a record type, the compiler generates a Deconstruct method on the class or struct representing the record type.
This method has out parameters with the same name as property accessors.
In this PR we add this exception to the rule that identifies bad practices related to shadowing.

@michaelnebel michaelnebel requested a review from a team as a code owner January 18, 2022 11:53
@github-actions github-actions bot added the C# label Jan 18, 2022
@michaelnebel
Copy link
Contributor Author

michaelnebel commented Jan 18, 2022

Closes #7609

hvitved
hvitved previously approved these changes Jan 18, 2022
Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

Excellent!

@michaelnebel michaelnebel added no-change-note-required This PR does not need a change note and removed no-change-note-required This PR does not need a change note labels Jan 18, 2022
@michaelnebel michaelnebel requested a review from hvitved January 18, 2022 14:56
hvitved
hvitved previously approved these changes Jan 19, 2022
@michaelnebel
Copy link
Contributor Author

Will need to rebase after #7605 is merged.

@hvitved
Copy link
Contributor

hvitved commented Jan 19, 2022

Will need to rebase after #7605 is merged.

Why is that? Got it!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants