Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

simplify EnvironmentVariablesConfigurationProvider.Load #6095

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

Conversation

SimonCropp
Copy link
Contributor

Fixes #
Design discussion issue #

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@SimonCropp SimonCropp requested a review from a team as a code owner January 23, 2025 10:52
Copy link
Contributor

@Kielek Kielek left a comment

Choose a reason for hiding this comment

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

From the header of the file:

// <auto-generated /> (Turns off StyleCop analysis in this file.)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

I suppose that the current construction is for the reason.
Maybe benchmarking? Did you have chance to verify it/and or double check the source of the file?

@SimonCropp
Copy link
Contributor Author

@Kielek what generates this file?

@Kielek
Copy link
Contributor

Kielek commented Jan 23, 2025

Please check #4092. It is marked as generated to avoid stylecop check

@SimonCropp
Copy link
Contributor Author

so if u manually duplicate a file, without also duplicating the tooling that generates it, then it is no longer a generated file

@Kielek
Copy link
Contributor

Kielek commented Jan 23, 2025

Yes, it is copied, and adjusted, but all parts are still valid:

  1. Are there any changes in the source of the file?
  2. I suppose that the current construction is for the reason. Maybe benchmarking? Did you have chance to verify it/and or double check the source of the file?

@rajkumar-rangaraj
Copy link
Contributor

@SimonCropp The reason for the while loop is the same as described in this discussion, and it is from a file copied from the .NET runtime. How do you want to proceed on this PR?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants