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

Optimize ListEx.Clone by using the is operator #386

Conversation

jcummings2
Copy link
Contributor

@jcummings2 jcummings2 commented Jul 31, 2020

Fix inconsistent indentation
Add unit test for ListEx.Clone for Move on a plain List

What kind of change does this PR introduce?
Optimization/simplification and code cleanup.

What is the current behavior?
As expected

What is the new behavior?
Same but with cleaner/optimized code and more unit tests to prove it works.

What might this PR break?
Nothing

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Fix inconsistent indentation
Add unit test for ListEx.Clone for Move on a plain List
@glennawatson
Copy link
Member

The IL code that gets generated is the same between the two versions but your PR is worth it in terms of code simplification and the extra unit tests.

Thanks for submitting.

@glennawatson glennawatson merged commit ef688db into reactivemarbles:main Aug 1, 2020
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants