D
D
Dmitry Makarov2015-10-13 09:16:22
C++ / C#
Dmitry Makarov, 2015-10-13 09:16:22

How to move a method from a static class to a non-static one?

I'm refactoring a legacy project.
There is a place that warps my sense of beauty.
Looks like this:

public static class Global
{
    public static void SomeMethod(SomeType inArg1, int inArg2, string inArg3)
    {
        //какой-то код
    }
}

And there are twenty such methods and they are used in five thousand places. There is a strong desire to make SomeMethod and its colleagues members of the SomeType class , but not to manually do this.
Are there any refactoring utilities that can do this (preferably free)?
Are there any free refactoring utilities with a little more functionality than VS?
UPD: ReSharper can do this .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2015-10-22
@DoctorStein

The second part of the question - Xamarin Studio - in principle, a good refactoring and for free. I think it's better than naked VS. But the first part does not seem to solve.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question