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.GetLength on single-dimensional arrays with Length property #9334

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

h3xds1nz
Copy link

@h3xds1nz h3xds1nz commented Jul 1, 2024

Description

Replaces Array.GetLength(0) on single-dimensional arrays with the Length property for performance benefit, clarity and general code quality. I didn't replace a few in Color and ColorTransform as that's part of my other PR and I don't want to create conflicts.

Customer Impact

Improved performance.

Regression

No.

Testing

Build, the changes are minimal hence no further testing.

Risk

Low.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners July 1, 2024 21:35
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage Queue for test pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants