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

Property setter RaiseAndSetIfChanged backing field cannot be altered #48

Closed
davidhagg opened this issue Mar 6, 2012 · 1 comment
Closed
Labels

Comments

@davidhagg
Copy link

If you have a property setter like this.RaiseAndSetIfChanged(x => x.TextToTranslate, value) you will have to call your backing field for the property _TextToTranslate

Our projects Resharper settings does not allow me to have a backing field named something with _underscore. This is a minor issue but would be nice to have.

@johnnyelwailer
Copy link

The most clean way is to use the overload where you pass the backing field by ref: this.RaiseAndSetIfChanged(x => x.TextToTranslate, ref this.textToTranslate, value)
Or you can change theRxApp.GetFieldNameForPropertyNameFunc

ghuntley pushed a commit that referenced this issue Oct 6, 2017
The Ldc_I8 opcode (int64 value) requires an argument of type long,
which was not being passed into the il.Emit function for
ObservableAsPropertyHelpers of type long.
ghuntley pushed a commit that referenced this issue Oct 6, 2017
The Ldc_I8 opcode (int64 value) requires an argument of type long,
which was not being passed into the il.Emit function for
ObservableAsPropertyHelpers of type long.
@lock lock bot added the outdated label Jun 26, 2019
@lock lock bot locked and limited conversation to collaborators Jun 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants