Closed zoli13 closed 1 year ago
Hi @zoli13, thanks for sharing your query and feedback, as mentioned in the last paragraph of this section this approach provides compile-time type safety and refactoring support when renaming properties. I am closing this issue, please feel free to continue the conversation here in case of further queries.
I might be overlooking something, but my much shorter and cleaner code piece (using nameof) also provides the same : compile time check and refactoring support.
Please provide the title of the book "Enterprise Application Patterns Using .NET MAUI"
What do you think could be improved in this book? You created sophisticated code with derived class, lambda expressions, etc to prevent using constant strings when calling OnPropertyChanged()
PDF / Page 14
Why not just simple use
nameof
? Then you can leave all extra code, lambda, classes out. Faster, simpler, easier, and you have the same advantage with refactoring support when renaming properties.E.g.: