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

Backing Field convention for camelCase property missing in docs? #4061

Closed
chrispaynter opened this issue Sep 29, 2022 · 2 comments
Closed

Backing Field convention for camelCase property missing in docs? #4061

chrispaynter opened this issue Sep 29, 2022 · 2 comments

Comments

@chrispaynter
Copy link
Contributor

chrispaynter commented Sep 29, 2022

The documentation for Backing Fields states that the follow conventions are used to determine the backing field for a property:

_<camel-cased property name>
_<property name>
m_<camel-cased property name>
m_<property name>

However, non prefixed camelCase also works.

This lead me to some confusion as to why my backing field was still being picked up.

I want to clarify whether non prefixed camel case needs to be added to the documentation before I create a PR, or whether I'm seeing some magic that isn't officially supported.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@ajcvickers
Copy link
Member

@chrispaynter Yes, the documentation is incomplete here. A PR would be appreciated.

Previously reported as #2532.

@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 5, 2022
@chrispaynter
Copy link
Contributor Author

#4071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants