Does source generated code means losing on refactoring? #51554
Unanswered
fullstackduck
asked this question in
Q&A
Replies: 1 comment 5 replies
-
@parveenkhtkr this is a good point that using strings for the names of properties is a take-back. Currently refactoring's such as Rename are not able to see and rename generated code right @jasonmalinowski? CC: @chsienki, @CyrusNajmabadi |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Brief description:
For reference let's take INotifyPropertyChanged example of source generation from the source generators cookbook.
While it's amazing to have that boilerplate code generated.
However, losing the ability to refactor makes it feel like 1 step forward 2 steps backward.
If it takes off, I see my projects as heavily dependent on generated code but not able to refactor say the property
Count
toNewCount
is a dealbreaker.I would not want to rename a few of these properties manually in hundreds of places.
Additional information:
It's not much of a suggestion but a query on what are the expectations regarding this.
Beta Was this translation helpful? Give feedback.
All reactions