Refactoring ""Extract Method" when a primary constructor property is in the extracted code sends primary constructor property in as a method parameter #73580
Labels
Area-IDE
Feature Request
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
This issue has been moved from a ticket on Developer Community.
If you do the "Extract method" refactoring on a block of code that contains a primary constructor parameter (new in C#12), the extraction succeeds, but the primary constructor is passed in as a method parameter into the new method. The extract method refactoring should not pass this variable in, but instead, reference it from inside of the new method directly.

Original Comments
Feedback Bot on 5/16/2024, 00:55 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: