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

Fix DrmOutputOptions.ConnectorTypeId naming #15710

Merged
merged 1 commit into from
May 14, 2024

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented May 13, 2024

What does the pull request do?

This PR renames DrmOutputOptions.ConnectorType_Id (introduced in #14878) to ConnectorTypeId.
The underscore doesn't respect the standard .NET naming style at all.

While code style is subject to discussion, I believe public API members should respect the established platform naming.

I'm aware this can be considered nitpicking, so feel free to close if needed.

I've also changed the init setters to set ones instead since that's what the other properties use. IMO, we should aim for consistency first and discuss separately whether we want all options to be set or init.

Breaking changes

Yes if updating from 11.1.0-beta2, but it's a new property as far as stable versions are concerned.

@MrJul MrJul added feature backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels May 13, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0048405-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@robloo
Copy link
Contributor

robloo commented May 13, 2024

Enforcing API conventions most definitely isn't nitpicking. Even at the application level. For a framework it's a fundamental requirement.

@maxkatz6 maxkatz6 added this pull request to the merge queue May 14, 2024
Merged via the queue into AvaloniaUI:master with commit a60c590 May 14, 2024
11 checks passed
@grokys grokys added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Jun 3, 2024
@MrJul MrJul deleted the fix/drm-options-naming branch July 4, 2024 09:28
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.

6 participants