nawfal
nawfal

Reputation: 73311

how to refactor to a different class in visual studio

I can refactor a big code to a new method which automatically sets the parameters, return type, if static or not etc in the same class. Is there a way that I can move the code to a new function in a different class if I could specify the class somehow? May be I'm missing something silly.

Upvotes: 4

Views: 3379

Answers (1)

Espen Burud
Espen Burud

Reputation: 1881

In VIsual Studio there is no possibility to move methods between classes. But if you use ReSharper from JetBrains, you can move static methods between classes with Move To Another Type command.

Upvotes: 4

Related Questions