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

Replace Array.Clear(array, 0, array.Length) calls with Array.Clear(array) #2103

Merged
merged 1 commit into from
May 2, 2022

Conversation

turbedi
Copy link
Contributor

@turbedi turbedi commented May 1, 2022

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Replace all Array.Clear(array, 0, array.Length); calls with Array.Clear(array); (available since .NET 6).
Less code and more optimized.

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ray)
Copy link
Collaborator

@brianpopow brianpopow left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@brianpopow brianpopow merged commit d2bad1f into SixLabors:main May 2, 2022
@turbedi turbedi deleted the array_clear branch May 2, 2022 13:08
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.

None yet

2 participants